summaryrefslogtreecommitdiffstats
path: root/runtime/transport/procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/transport/procfs.c')
-rw-r--r--runtime/transport/procfs.c4
1 files changed, 2 insertions, 2 deletions
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))