aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-05-22 21:03:16 -0700
committerChris Robinson <[email protected]>2016-05-22 21:03:16 -0700
commite8b274d34993010462cba1086871015b3db1ccfb (patch)
tree128eb2eb781def32eab90e7193021e06d50e98c4 /Alc/ALc.c
parentea3fa06bc5f28d346e89600639caab1e199821da (diff)
Properly pluralize some messages
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 3a2ac287..1e501aec 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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);