diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-07-14 15:25:19 -0700 |
---|---|---|
committer | Alan Coopersmith <alanc@alf.(none)> | 2006-07-14 15:25:19 -0700 |
commit | be9b2e85f579c5eda7a8868ee9ebf0b268c5a181 (patch) | |
tree | 06230a905e34300df21ff7cea0702f01f1891cb8 | |
parent | 2094955be1ef94a0ba3f7dcf64ae04c9575dbd9c (diff) |
Delete unused Panic() function
-rw-r--r-- | dm_error.h | 1 | ||||
-rw-r--r-- | error.c | 11 |
2 files changed, 0 insertions, 12 deletions
@@ -50,7 +50,6 @@ extern void LogError (char * fmt, ...) GCC_PRINTFLIKE(1,2); extern void LogInfo (char * fmt, ...) GCC_PRINTFLIKE(1,2); extern void LogOutOfMem (char * fmt, ...) GCC_PRINTFLIKE(1,2); extern void LogPanic (char * fmt, ...) GCC_PRINTFLIKE(1,2); -extern void Panic (char * mesg); #endif /* _DM_ERROR_H_ */ @@ -104,17 +104,6 @@ void LogOutOfMem (char * fmt, ...) fflush (stderr); } -void Panic (char *mesg) -{ - int i; - - i = creat ("/dev/console", 0666); - write (i, "panic: ", 7); - write (i, mesg, strlen (mesg)); - exit (1); -} - - void Debug (char * fmt, ...) { char buf[1024]; |