Another quick patch. This provides a little more helpful information
when the synth is being used via libiiwusynth.
------------------------------------------------------------------------
Index: iiwu_sys.c
===================================================================
RCS file: /cvsroot/iiwusynth/iiwusynth/src/iiwu_sys.c,v
retrieving revision 1.18
diff -u -3 -p -r1.18 iiwu_sys.c
--- iiwu_sys.c 9 May 2002 16:29:52 -0000 1.18
+++ iiwu_sys.c 31 May 2002 09:52:49 -0000
@@ -147,24 +147,24 @@ iiwu_default_log_function(int level, cha
switch (level) {
case IIWU_PANIC:
- IIWU_FPRINTF(stderr, "panic: %s\n", message);
+ IIWU_FPRINTF(stderr, "%s: panic: %s\n", "iiwusynth", message);
break;
case IIWU_ERR:
- IIWU_FPRINTF(stderr, "error: %s\n", message);
+ IIWU_FPRINTF(stderr, "%s: error: %s\n", "iiwusynth", message);
break;
case IIWU_WARN:
- IIWU_FPRINTF(stderr, "warning: %s\n", message);
+ IIWU_FPRINTF(stderr, "%s: warning: %s\n", "iiwusynth", message);
break;
case IIWU_INFO:
- IIWU_FPRINTF(stderr, "%s\n", message);
+ IIWU_FPRINTF(stderr, "%s: %s\n", "iiwusynth", message);
break;
case IIWU_DBG:
#if DEBUG
- IIWU_FPRINTF(stderr, "debug: %s\n", message);
+ IIWU_FPRINTF(stderr, "%s: debug: %s\n", "iiwusynth", message);
#endif
break;
default:
- IIWU_FPRINTF(stderr, "%s\n", message);
+ IIWU_FPRINTF(stderr, "%s: %s\n", "iiwusynth", message);
break;
}
fflush(stderr);