diff options
author | Chris Robinson <[email protected]> | 2016-05-22 21:03:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-22 21:03:16 -0700 |
commit | e8b274d34993010462cba1086871015b3db1ccfb (patch) | |
tree | 128eb2eb781def32eab90e7193021e06d50e98c4 /Alc/ALc.c | |
parent | ea3fa06bc5f28d346e89600639caab1e199821da (diff) |
Properly pluralize some messages
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -2139,21 +2139,24 @@ static ALCvoid FreeDevice(ALCdevice *device) if(device->BufferMap.size > 0) { - WARN("(%p) Deleting %d Buffer(s)\n", device, device->BufferMap.size); + WARN("(%p) Deleting %d Buffer%s\n", device, device->BufferMap.size, + (device->BufferMap.size==1)?"":"s"); ReleaseALBuffers(device); } ResetUIntMap(&device->BufferMap); if(device->EffectMap.size > 0) { - WARN("(%p) Deleting %d Effect(s)\n", device, device->EffectMap.size); + WARN("(%p) Deleting %d Effect%s\n", device, device->EffectMap.size, + (device->EffectMap.size==1)?"":"s"); ReleaseALEffects(device); } ResetUIntMap(&device->EffectMap); if(device->FilterMap.size > 0) { - WARN("(%p) Deleting %d Filter(s)\n", device, device->FilterMap.size); + WARN("(%p) Deleting %d Filter%s\n", device, device->FilterMap.size, + (device->FilterMap.size==1)?"":"s"); ReleaseALFilters(device); } ResetUIntMap(&device->FilterMap); @@ -2300,14 +2303,16 @@ static void FreeContext(ALCcontext *context) if(context->SourceMap.size > 0) { - WARN("(%p) Deleting %d Source(s)\n", context, context->SourceMap.size); + WARN("(%p) Deleting %d Source%s\n", context, context->SourceMap.size, + (context->SourceMap.size==1)?"":"s"); ReleaseALSources(context); } ResetUIntMap(&context->SourceMap); if(context->EffectSlotMap.size > 0) { - WARN("(%p) Deleting %d AuxiliaryEffectSlot(s)\n", context, context->EffectSlotMap.size); + WARN("(%p) Deleting %d AuxiliaryEffectSlot%s\n", context, context->EffectSlotMap.size, + (context->EffectSlotMap.size==1)?"":"s"); ReleaseALAuxiliaryEffectSlots(context); } ResetUIntMap(&context->EffectSlotMap); |