]> Zhao Yanbai Git Server - minix.git/commitdiff
. FS: removed half-baked stack trace code
authorBen Gras <ben@minix3.org>
Tue, 3 May 2005 09:02:47 +0000 (09:02 +0000)
committerBen Gras <ben@minix3.org>
Tue, 3 May 2005 09:02:47 +0000 (09:02 +0000)
. inet: removed silly error message from inet that ends up in the console
  regularly
. Makefile: added some files to the incomplete clean target

servers/fs/Makefile
servers/fs/super.c
servers/fs/utility.c
servers/inet/Makefile
servers/inet/generic/ip_read.c

index cde1641e6bdb2fa29d72ccbdb595395df46e8d30..b012e41ee9e65aa14c44146b225f35f8221bc1f7 100644 (file)
@@ -250,11 +250,6 @@ utility.o: file.h
 utility.o:     fproc.h
 utility.o:     inode.h
 utility.o:     param.h
-utility.o:     symtab.h
-
-
-symtab.h: 
-       sh makenmtab.sh $@
 
 
 write.o:       $a
index 26af8313247a0ffb58a1b4328ec889c7658a40fb..305e6c1f007d5e60bb3fc46f08f6ccd56107cdf2 100644 (file)
@@ -223,7 +223,6 @@ register struct super_block *sp; /* pointer to a superblock */
   r = dev_io(DEV_READ, dev, FS_PROC_NR,
        sbbuf, SUPER_BLOCK_BYTES, MIN_BLOCK_SIZE, 0);
   if(r != MIN_BLOCK_SIZE) {
-       printf("dev_io failed for super block (%d)\n", r);
        return EINVAL;
   }
   memcpy(sp, sbbuf, sizeof(*sp));
index cb9e05ccdee072367cc616f515e3626bedca28a9..2838fe5f53d8c54bd61794483d1d93cca842cd6e 100644 (file)
  *   conv4:      do byte swapping on a 32-bit long
  */
 
-#define STACKINFO 1
-
-#if STACKINFO
-#include "symtab.h"
-#endif
-
 #include "fs.h"
 #include <minix/com.h>
 #include <unistd.h>
 #include "inode.h"
 #include "param.h"
 
-#if STACKINFO
-
-struct i386_frame {
-       struct i386_frame *next;
-       int retaddr;
-       int arg0;
-};
-
-PUBLIC void
-show_stack(void)
-{
-       unsigned long *s;
-       int i, t, p = 0;
-       s = (unsigned long *) &i; 
-       for(i = 0; i < 120; i++, s++) {
-               char *symname = NULL;
-               if(!*s) continue;
-#define ELEMENTS (sizeof(fs_sym_entries)/sizeof(struct fs_sym_entry))
-               for(t = 0; t < ELEMENTS-1; t++) {
-                       if(*s >= fs_sym_entries[t].symoffset &&
-                          *s <  fs_sym_entries[t+1].symoffset) {
-                               symname = fs_sym_entries[t].symname;
-                               break;
-                       }
-               }
-               if(!symname) continue;
-               if(!(p%7)) printf("\n");
-               p++;
-               printf("%-9s ", symname);
-       }
-       printf("\n");
-}
-#endif
-
 PRIVATE int panicking;         /* inhibits recursive panics during sync */
 
 /*===========================================================================*
@@ -147,10 +107,6 @@ int num;                   /* number to go with format string */
 
   if (panicking) return;       /* do not panic during a sync */
   panicking = TRUE;            /* prevent another panic during the sync */
-   
-#if STACKINFO
-  show_stack();
-#endif
 
   printf("File system panic: %s ", format);
   if (num != NO_NUM) printf("%d",num); 
index a37f7c8a3384b9e81e8b2841a23544e23d71a243..96c46de8e150698da252fffd38d97aaf3f074e54 100644 (file)
@@ -41,7 +41,7 @@ install:      /usr/sbin/servers/$(SERVER)
        install -o root -cs $? $@
 
 clean:
-       rm -f $(SERVER) *.a *.o *.bak .all
+       rm -f $(SERVER) *.a *.o */*.o */*.a *.bak .all
 
 # depencencies
 .all:  $h/com.h
index 0937f003944f9c32d9b0cf34c478c11ab496b542..7fc80b7c90fe63c550bf7075aad7318198252ff8 100644 (file)
@@ -774,13 +774,17 @@ assert (pack->acc_length >= IP_MIN_HDR_SIZE);
        if (!broadcast_dst(ip_port, ip_hdr->ih_dst))
        {
 #if !CRAMPED
-               printf(
-               "ip[%d]: broadcast packet for ip-nonbroadcast addr, src=",
+               /* this message isn't very useful, but is quite annoying on
+                * the console
+                */
+               /*
+               printf("ip[%d]: broadcast packet for ip-nonbroadcast addr, src=",
                        ip_port->ip_port);
                writeIpAddr(ip_hdr->ih_src);
                printf(" dst=");
                writeIpAddr(ip_hdr->ih_dst);
                printf("\n");
+               */
 #endif
                bf_afree(pack);
                return;