panic generation update

something weird, e.g.
panic(cpu 0 caller 0x5c91c3d0): buf@/Users/shadow/Source/openafs/src/rx/rx_kcommon.c:1348

which came from an osi_Assert. not sure yet what the deal is, but attempt to
make this less ambiguous and less likely to conflict with other macros.

Change-Id: Iac27e89fc655d2b1ba6d04936e137060d8abd9c4
Reviewed-on: http://gerrit.openafs.org/1693
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-04-05 00:42:04 -04:00
parent 03bb2c9d40
commit 2b42e78168
2 changed files with 2 additions and 2 deletions

View File

@ -1344,7 +1344,7 @@ osi_Panic(char *msg, ...)
va_start(ap, msg); va_start(ap, msg);
vsnprintf(buf, sizeof(buf), msg, ap); vsnprintf(buf, sizeof(buf), msg, ap);
va_end(ap); va_end(ap);
printf(buf); printf("%s", buf);
panic(buf); panic(buf);
#else #else
va_list ap; va_list ap;

View File

@ -36,7 +36,7 @@ typedef struct socket *osi_socket;
CM_TRACE_RXWAKE, ICL_TYPE_STRING, __FILE__, ICL_TYPE_INT32, __LINE__) CM_TRACE_RXWAKE, ICL_TYPE_STRING, __FILE__, ICL_TYPE_INT32, __LINE__)
extern int osi_utoa(char *buf, size_t len, unsigned long val); extern int osi_utoa(char *buf, size_t len, unsigned long val);
#define osi_Assert(e) (void)((e) || (osi_AssertFailK(#e, __FILE__, __LINE__), 0)) #define osi_Assert(exp) (void)((exp) || (osi_AssertFailK( #exp , __FILE__, __LINE__), 0))
#define osi_Msg printf)( #define osi_Msg printf)(
#define osi_VMsg vprintf)( #define osi_VMsg vprintf)(