--- fsl.c 2002/07/30 10:08:08 1.38
+++ fsl.c 2002/07/30 11:37:19 1.39
@@ -200,9 +200,8 @@
char cp[8];
va_start(ap, message);
- if (ctx.l2_fslnch != NULL)
- l2_channel_vlog(ctx.l2_fslnch, level, message, ap);
- else
+ /* note that a L2_ERR_USE is only returned by l2_channel_vlog() if the channel is not yet open */
+ if (ctx.l2_fslnch == NULL || (l2_channel_vlog(ctx.l2_fslnch, level, message, ap) == L2_ERR_USE))
if (level & L2_LEVEL_UPTO(L2_LEVEL_ERROR)) {
fprintf( stderr, "%s: ", l2_util_l2s(cp, sizeof(cp), '\0', level) == L2_OK ? cp[0]&=0xDF, cp : "Log");
vfprintf(stderr, message, ap);
|