From fbb98f4333cc4c568a50f4473ee1b7b2fbe7f6d1 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 15 Dec 2010 10:23:40 +0000 Subject: [PATCH] Moved definition of scst_read_trace_tbl() too. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3064 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_sysfs.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index d0ab62794..ad8d7cf2e 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -97,6 +97,26 @@ static struct scst_trace_log scst_local_trace_tbl[] = { { 0, NULL } }; +static void scst_read_trace_tbl(const struct scst_trace_log *tbl, char *buf, + unsigned long log_level, int *pos) +{ + const struct scst_trace_log *t = tbl; + + if (t == NULL) + goto out; + + while (t->token) { + if (log_level & t->val) { + *pos += sprintf(&buf[*pos], "%s%s", + (*pos == 0) ? "" : " | ", + t->token); + } + t++; + } +out: + return; +} + static ssize_t scst_trace_level_show(const struct scst_trace_log *local_tbl, unsigned long log_level, char *buf, const char *help) { @@ -4550,26 +4570,6 @@ out: #if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING) -static void scst_read_trace_tbl(const struct scst_trace_log *tbl, char *buf, - unsigned long log_level, int *pos) -{ - const struct scst_trace_log *t = tbl; - - if (t == NULL) - goto out; - - while (t->token) { - if (log_level & t->val) { - *pos += sprintf(&buf[*pos], "%s%s", - (*pos == 0) ? "" : " | ", - t->token); - } - t++; - } -out: - return; -} - static ssize_t scst_main_trace_level_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) {