From 743e6b49d92c1ef9c6d3a174be8130731b60019e Mon Sep 17 00:00:00 2001 From: trz Date: Thu, 16 Mar 2006 15:14:39 +0000 Subject: change relayfs version checking ifdefs --- runtime/transport/procfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/transport/procfs.c') diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c index 22b14046..ec463c4c 100644 --- a/runtime/transport/procfs.c +++ b/runtime/transport/procfs.c @@ -31,13 +31,13 @@ _stp_proc_read (struct file *file, char __user *buf, size_t count, loff_t *ppos) return -EINVAL; out.cpu = cpu; -#if RELAYFS_VERSION_GE_4 || defined (CONFIG_RELAY) +#if (RELAYFS_CHANNEL_VERSION >= 4) || defined (CONFIG_RELAY) out.produced = _stp_chan->buf[cpu]->subbufs_produced; out.consumed = _stp_chan->buf[cpu]->subbufs_consumed; #else out.produced = atomic_read(&_stp_chan->buf[cpu]->subbufs_produced); out.consumed = atomic_read(&_stp_chan->buf[cpu]->subbufs_consumed); -#endif /* RELAYFS_VERSION_GE_4 || CONFIG_RELAY */ +#endif /* RELAYFS_CHANNEL_VERSION >= 4 || CONFIG_RELAY */ num = sizeof(out); if (copy_to_user(buf, &out, num)) -- cgit