aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-07 04:31:31 -0700
committerChris Robinson <[email protected]>2012-10-07 04:31:31 -0700
commit708f3ccc3d457499ac046a009a7c3317b31a2b4b (patch)
tree7feb7d2ae2bb2ae2a5c5b362778f50266d7a25a5 /Alc/helpers.c
parent84f4afa5f2928a6b2099df71e4e2ead6e48875d0 (diff)
Add trace, warn, and error markers to logged output
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 2143a4c8..262c2551 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -433,13 +433,13 @@ void *GetSymbol(void *handle, const char *name)
#endif
-void al_print(const char *func, const char *fmt, ...)
+void al_print(const char *type, const char *func, const char *fmt, ...)
{
char str[256];
int i;
- i = snprintf(str, sizeof(str), "AL lib: %s: ", func);
- if(i < (int)sizeof(str) && i > 0)
+ i = snprintf(str, sizeof(str), "AL lib: %s %s: ", type, func);
+ if(i > 0 && (unsigned int)i < sizeof(str))
{
va_list ap;
va_start(ap, fmt);