提交 a4e09279 编写于 作者: A Allan Stephens 提交者: David S. Miller

[TIPC]: Allow compilation when CONFIG_TIPC_DEBUG is not set.

Signed-off-by: NAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: NPer Liden <per.liden@ericsson.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d356eeba
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* net/tipc/core.h: Include file for TIPC global declarations * net/tipc/core.h: Include file for TIPC global declarations
* *
* Copyright (c) 2005-2006, Ericsson AB * Copyright (c) 2005-2006, Ericsson AB
* Copyright (c) 2005, Wind River Systems * Copyright (c) 2005-2006, Wind River Systems
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
...@@ -111,10 +111,6 @@ void tipc_dump(struct print_buf*,const char *fmt, ...); ...@@ -111,10 +111,6 @@ void tipc_dump(struct print_buf*,const char *fmt, ...);
#else #else
#ifndef DBG_OUTPUT
#define DBG_OUTPUT NULL
#endif
/* /*
* TIPC debug support not included: * TIPC debug support not included:
* - system messages are printed to system console * - system messages are printed to system console
...@@ -129,6 +125,19 @@ void tipc_dump(struct print_buf*,const char *fmt, ...); ...@@ -129,6 +125,19 @@ void tipc_dump(struct print_buf*,const char *fmt, ...);
#define msg_dbg(msg,txt) do {} while (0) #define msg_dbg(msg,txt) do {} while (0)
#define dump(fmt,arg...) do {} while (0) #define dump(fmt,arg...) do {} while (0)
/*
* TIPC_OUTPUT is defined to be the system console, while DBG_OUTPUT is
* the null print buffer. Thes ensures that any system or debug messages
* that are generated without using the above macros are handled correctly.
*/
#undef TIPC_OUTPUT
#define TIPC_OUTPUT TIPC_CONS
#undef DBG_OUTPUT
#define DBG_OUTPUT NULL
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册