mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
03bb2c9d40
commit
2b42e78168
@ -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;
|
||||||
|
@ -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)(
|
||||||
|
Loading…
Reference in New Issue
Block a user