patch-2.0.24 linux/drivers/scsi/NCR5380.c

Next file: linux/drivers/scsi/aha152x.c
Previous file: linux/drivers/scsi/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.23/linux/drivers/scsi/NCR5380.c linux/drivers/scsi/NCR5380.c
@@ -734,7 +734,7 @@
  */
 
 static void NCR5380_print_status (struct Scsi_Host *instance) {
-   char pr_bfr[256];
+   static char pr_bfr[512];
    char *start;
    int len;
 
@@ -767,7 +767,7 @@
 */
 
 #undef SPRINTF
-#define SPRINTF(args...) do { if(pos < buffer + length) pos += sprintf(pos, ## args); } while(0)
+#define SPRINTF(args...) do { if(pos < buffer + length-80) pos += sprintf(pos, ## args); } while(0)
 static
 char *lprint_Scsi_Cmnd (Scsi_Cmnd *cmd, char *pos, char *buffer, int length);
 static

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov