[ltt-dev] [PATCH] lttng: fix lttng compile failure
Wei Yongjun
yjwei at cn.fujitsu.com
Thu Oct 9 01:11:23 EDT 2008
Thi patch fix the compile failure if config
CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS.
CC ltt/ltt-heartbeat.o
In file included from include/linux/ltt-tracer.h:18,
from ltt/ltt-heartbeat.c:25:
include/linux/ltt-relay.h: In function 'ltt_relay_find_prev_page':
include/linux/ltt-relay.h:164: error: 'KERN_WARN' undeclared (first use
in this function)
include/linux/ltt-relay.h:164: error: (Each undeclared identifier is
reported only once
include/linux/ltt-relay.h:164: error: for each function it appears in.)
include/linux/ltt-relay.h:165: error: expected ')' before string constant
include/linux/ltt-relay.h: In function 'ltt_relay_find_next_page':
include/linux/ltt-relay.h:202: error: 'KERN_WARN' undeclared (first use
in this function)
include/linux/ltt-relay.h:203: error: expected ')' before string constant
make[1]: *** [ltt/ltt-heartbeat.o] Error 1
make: *** [ltt] Error 2
Signed-off-by: Wei Yongjun <yjwei at cn.fujitsu.com>
---
include/linux/ltt-relay.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/ltt-relay.h b/include/linux/ltt-relay.h
index aaab201..d63bd43 100644
--- a/include/linux/ltt-relay.h
+++ b/include/linux/ltt-relay.h
@@ -161,7 +161,7 @@ static inline struct buf_page
*ltt_relay_find_prev_page(struct rchan_buf *buf,
&& offset < iter->offset + PAGE_SIZE) {
#ifdef CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS
if (i > 1) {
- printk(KERN_WARN
+ printk(KERN_WARNING
"Backward random access detected in "
"ltt_relay. Iterations %u, "
"offset %zu, orig iter->off %zu, "
@@ -199,7 +199,7 @@ static inline struct buf_page
*ltt_relay_find_next_page(struct rchan_buf *buf,
&& offset < iter->offset + PAGE_SIZE) {
#ifdef CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS
if (i > 1) {
- printk(KERN_WARN
+ printk(KERN_WARNING
"Forward random access detected in "
"ltt_relay. Iterations %u, "
"offset %zu, orig iter->off %zu, "
--
1.5.3.8
More information about the lttng-dev
mailing list