patch-1.3.18 linux/drivers/sound/sound_switch.c

Next file: linux/drivers/sound/soundvers.h
Previous file: linux/drivers/sound/sound_config.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.17/linux/drivers/sound/sound_switch.c linux/drivers/sound/sound_switch.c
@@ -58,8 +58,8 @@
 {
   int             l;
 
-  for (l = 0; l < 256 && s[l]; l++);	/*
-					 * l=strnlen(s,256);
+  for (l = 0; l < 256, s[l]; l++);	/*
+					 * l=strlen(s);
 					 */
 
   if (status_len + l >= 4000)
@@ -115,10 +115,17 @@
 
   status_ptr = 0;
 
+#ifdef SOUND_UNAME_A
+  put_status ("VoxWare Sound Driver:" SOUND_VERSION_STRING
+	      " (" SOUND_CONFIG_DATE " " SOUND_CONFIG_BY ",\n"
+	      SOUND_UNAME_A ")"
+	      "\n");
+#else
   put_status ("VoxWare Sound Driver:" SOUND_VERSION_STRING
 	      " (" SOUND_CONFIG_DATE " " SOUND_CONFIG_BY "@"
 	      SOUND_CONFIG_HOST "." SOUND_CONFIG_DOMAIN ")"
 	      "\n");
+#endif
 
   if (!put_status ("Config options: "))
     return;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this