OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_test.c versions 1.32 and 1.33
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_test.c 1.32 -> 1.33

--- l2_test.c    2001/10/05 10:40:17     1.32
+++ l2_test.c    2001/10/05 14:25:57     1.33
@@ -99,7 +99,7 @@
     if ((chBuf  = l2_channel_create(&l2_handler_buffer)) == NULL)    /* Buffer */
         die("failed to create buffer channel");
 
-    if (l2_channel_configure(chBuf, "size,interval", 100, 20) != L2_OK)
+    if (l2_channel_configure(chBuf, "size,interval", 800, 12) != L2_OK)
         die("failed to configure buffer channel");
 
     if ((chFile = l2_channel_create(&l2_handler_file)) == NULL)      /* File   */
@@ -220,7 +220,16 @@
     if (l2_stream_formatter(st, 'S', l2_util_fmt_dump, NULL) != L2_OK)
         die("failed to configure formatter for %%S");
 
-    if (l2_stream_log(st, L2_LEVEL_PANIC, "Checking localhost %s %{myparm}k <%{text}S><%{hex}S><%{base64}S>\n", "foo", 12345, "foo\1bar", 7, "foo\1bar", 7, "foo\1bar", 7) != L2_OK)
+    if (l2_stream_log(st, L2_LEVEL_PANIC, "0Checking localhost %s %{myparm}k <%{text}S><%{hex}S><%{base64}S>\n", "foo", 12345, "foo\1bar", 7, "foo\1bar", 7, "foo\1bar", 7) != L2_OK)
+        die("failed to log message to stream");
+
+    if (l2_stream_log(st, L2_LEVEL_PANIC, "1Shecking\n") != L2_OK)
+        die("failed to log message to stream");
+
+    if (l2_stream_log(st, L2_LEVEL_PANIC, "2Checking localhost %s %{myparm}k <%{text}S><%{hex}S><%{base64}S>\n", "foo", 12345, "foo\1bar", 7, "foo\1bar", 7, "foo\1bar", 7) != L2_OK)
+        die("failed to log message to stream");
+
+    if (l2_stream_log(st, L2_LEVEL_PANIC, "3Shecking\n") != L2_OK)
         die("failed to log message to stream");
 
     if (l2_stream_destroy(st) != L2_OK)

CVSTrac 2.0.1