]> Zhao Yanbai Git Server - minix.git/commit
panic() cleanup.
authorBen Gras <ben@minix3.org>
Fri, 5 Mar 2010 15:05:11 +0000 (15:05 +0000)
committerBen Gras <ben@minix3.org>
Fri, 5 Mar 2010 15:05:11 +0000 (15:05 +0000)
commit35a108b911237c1dbd8b99db84d4fed1761ccf73
treeaa7a5758b4410b3c7cd71ecf1f771d3c19bdcaad
parent851dc95566ea0e4859a95ac13a010ab1afdd1d40
panic() cleanup.

this change
   - makes panic() variadic, doing full printf() formatting -
     no more NO_NUM, and no more separate printf() statements
     needed to print extra info (or something in hex) before panicing
   - unifies panic() - same panic() name and usage for everyone -
     vm, kernel and rest have different names/syntax currently
     in order to implement their own luxuries, but no longer
   - throws out the 1st argument, to make source less noisy.
     the panic() in syslib retrieves the server name from the kernel
     so it should be clear enough who is panicing; e.g.
         panic("sigaction failed: %d", errno);
     looks like:
         at_wini(73130): panic: sigaction failed: 0
         syslib:panic.c: stacktrace: 0x74dc 0x2025 0x100a
   - throws out report() - printf() is more convenient and powerful
   - harmonizes/fixes the use of panic() - there were a few places
     that used printf-style formatting (didn't work) and newlines
     (messes up the formatting) in panic()
   - throws out a few per-server panic() functions
   - cleans up a tie-in of tty with panic()

merging printf() and panic() statements to be done incrementally.
171 files changed:
drivers/amddev/amddev.c
drivers/at_wini/at_wini.c
drivers/atl2/atl2.c
drivers/audio/sb16/sb16.c
drivers/bios_wini/bios_wini.c
drivers/dec21140A/dec21140A.c
drivers/dp8390/3c503.c
drivers/dp8390/dp8390.c
drivers/dp8390/rtl8029.c
drivers/dpeth/3c501.c
drivers/dpeth/3c503.c
drivers/dpeth/3c509.c
drivers/dpeth/8390.c
drivers/dpeth/dp.c
drivers/dpeth/netbuff.c
drivers/e1000/e1000.c
drivers/filter/driver.c
drivers/filter/main.c
drivers/filter/sum.c
drivers/filter/util.c
drivers/floppy/floppy.c
drivers/fxp/fxp.c
drivers/lance/lance.c
drivers/libdriver/driver.c
drivers/log/diag.c
drivers/memory/memory.c
drivers/orinoco/orinoco.c
drivers/pci/pci.c
drivers/printer/printer.c
drivers/random/main.c
drivers/random/random.c
drivers/rtl8139/rtl8139.c
drivers/rtl8169/rtl8169.c
drivers/sb16/sb16.c
drivers/sb16/sb16_dsp.c
drivers/ti1225/ti1225.c
drivers/tty/console.c
drivers/tty/keyboard.c
drivers/tty/tty.c
drivers/tty/tty.h
include/minix/const.h
include/minix/devio.h
include/minix/sysutil.h
include/minix/type.h
kernel/arch/i386/arch_do_vmctl.c
kernel/arch/i386/exception.c
kernel/arch/i386/memory.c
kernel/arch/i386/mpx386.S
kernel/arch/i386/protect.c
kernel/arch/i386/watchdog.c
kernel/debug.c
kernel/debug.h
kernel/interrupt.c
kernel/main.c
kernel/proc.c
kernel/proto.h
kernel/system.c
kernel/system/do_irqctl.c
kernel/system/do_safecopy.c
kernel/system/do_sysctl.c
kernel/system/do_umap.c
kernel/system/do_vdevio.c
kernel/system/do_vmctl.c
kernel/utility.c
lib/libsys/Makefile
lib/libsys/alloc_util.c
lib/libsys/assert.c
lib/libsys/asynsend.c
lib/libsys/env_panic.c
lib/libsys/kprintf.c
lib/libsys/panic.c
lib/libsys/pci_attr_r16.c
lib/libsys/pci_attr_r32.c
lib/libsys/pci_attr_r8.c
lib/libsys/pci_attr_w16.c
lib/libsys/pci_attr_w32.c
lib/libsys/pci_attr_w8.c
lib/libsys/pci_del_acl.c
lib/libsys/pci_dev_name.c
lib/libsys/pci_find_dev.c
lib/libsys/pci_first_dev.c
lib/libsys/pci_ids.c
lib/libsys/pci_init1.c
lib/libsys/pci_next_dev.c
lib/libsys/pci_rescan_bus.c
lib/libsys/pci_reserve.c
lib/libsys/pci_set_acl.c
lib/libsys/pci_slot_name.c
lib/libsys/report.c [deleted file]
lib/libsys/sef.c
lib/libsys/sef_liveupdate.c
lib/libsys/timing.c
lib/libsys/tsc_util.c
lib/libsys/vprintf.c [new file with mode: 0644]
servers/ds/main.c
servers/ds/store.c
servers/hgfs/inode.c
servers/hgfs/main.c
servers/inet/inet.c
servers/is/dmp.c
servers/is/dmp_kernel.c
servers/is/dmp_vm.c
servers/is/main.c
servers/iso9660fs/device.c
servers/iso9660fs/main.c
servers/iso9660fs/proto.h
servers/iso9660fs/read.c
servers/iso9660fs/utility.c
servers/mfs/cache.c
servers/mfs/device.c
servers/mfs/inode.c
servers/mfs/link.c
servers/mfs/main.c
servers/mfs/mount.c
servers/mfs/open.c
servers/mfs/path.c
servers/mfs/read.c
servers/mfs/super.c
servers/mfs/utility.c
servers/mfs/write.c
servers/pfs/inode.c
servers/pfs/main.c
servers/pfs/utility.c
servers/pm/alarm.c
servers/pm/exec.c
servers/pm/forkexit.c
servers/pm/main.c
servers/pm/signal.c
servers/pm/time.c
servers/pm/timers.c
servers/pm/trace.c
servers/pm/utility.c
servers/rs/main.c
servers/rs/manager.c
servers/vfs/device.c
servers/vfs/dmap.c
servers/vfs/fs.h
servers/vfs/fscall.c
servers/vfs/lock.c
servers/vfs/main.c
servers/vfs/misc.c
servers/vfs/mount.c
servers/vfs/path.c
servers/vfs/pipe.c
servers/vfs/proto.h
servers/vfs/read.c
servers/vfs/request.c
servers/vfs/select.c
servers/vfs/stadir.c
servers/vfs/timers.c
servers/vfs/utility.c
servers/vfs/vnode.c
servers/vm/alloc.c
servers/vm/break.c
servers/vm/exec.c
servers/vm/fork.c
servers/vm/i386/pagetable.c
servers/vm/main.c
servers/vm/map_mem.c
servers/vm/mmap.c
servers/vm/pagefaults.c
servers/vm/region.c
servers/vm/sanitycheck.h
servers/vm/signal.c
servers/vm/slaballoc.c
servers/vm/util.h
servers/vm/utility.c
test/safecopy/inc.h
test/safemap/inc.h
test/safeperf/inc.h
test/safeperf/requestor.c