reformatting
[unix-history] / usr / src / sys / kern / subr_prf.c
index 9108ff0..62f1d4d 100644 (file)
@@ -1,4 +1,4 @@
-/*     subr_prf.c      4.12    %G%     */
+/*     subr_prf.c      4.13    %G%     */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -173,15 +173,27 @@ panic(s)
        boot(RB_PANIC, bootopt);
 }
 
        boot(RB_PANIC, bootopt);
 }
 
+/*
+ * Warn that a system table is full.
+ */
+tablefull(tab)
+       char *tab;
+{
+
+       printf("%s: table is full\n", tab);
+}
+
 /*
  * Hard error is the preface to plaintive error messages
 /*
  * Hard error is the preface to plaintive error messages
- * about failing device transfers.
+ * about failing disk transfers.
  */
  */
-harderr(bp)
+harderr(bp, cp)
        struct buf *bp;
        struct buf *bp;
+       char *cp;
 {
 
 {
 
-       printf("hard err bn%d ", bp->b_blkno);
+       printf("%s%d%c: hard error sn%d ", cp,
+           dkunit(bp), 'a'+(minor(bp->b_dev)&07), bp->b_blkno);
 }
 
 /*
 }
 
 /*