From: frank.blaschka@de.ibm.com
To: jgarzik@pobox.com
Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org,
Peter Tiedemann <ptiedem@de.ibm.com>
Subject: [patch 4/5] qeth: Prepare-function to call s390dbf was wrong
Date: Fri, 06 Jun 2008 12:37:47 +0200 [thread overview]
Message-ID: <20080606103829.729388000@de.ibm.com> (raw)
In-Reply-To: 20080606103743.638691000@de.ibm.com
[-- Attachment #1: 603-qeth-s390dbf.diff --]
[-- Type: text/plain, Size: 1296 bytes --]
From: Peter Tiedemann <ptiedem@de.ibm.com>
Prepare-function to call s390dbf was wrong handling variable arguments.
This worked as macro but not as function any more.
Now using va_list processing.
Signed-off-by: Peter Tiedemann <ptiedem@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
---
drivers/s390/net/qeth_core_main.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff -urpN linux-2.6/drivers/s390/net/qeth_core_main.c linux-2.6-patched/drivers/s390/net/qeth_core_main.c
--- linux-2.6/drivers/s390/net/qeth_core_main.c 2008-06-06 10:53:13.000000000 +0200
+++ linux-2.6-patched/drivers/s390/net/qeth_core_main.c 2008-06-06 10:53:13.000000000 +0200
@@ -3983,15 +3983,17 @@ static void qeth_unregister_dbf_views(vo
}
}
-void qeth_dbf_longtext(enum qeth_dbf_names dbf_nix, int level, char *text, ...)
+void qeth_dbf_longtext(enum qeth_dbf_names dbf_nix, int level, char *fmt, ...)
{
char dbf_txt_buf[32];
+ va_list args;
if (level > (qeth_dbf[dbf_nix].id)->level)
return;
- snprintf(dbf_txt_buf, sizeof(dbf_txt_buf), text);
+ va_start(args, fmt);
+ vsnprintf(dbf_txt_buf, sizeof(dbf_txt_buf), fmt, args);
+ va_end(args);
debug_text_event(qeth_dbf[dbf_nix].id, level, dbf_txt_buf);
-
}
EXPORT_SYMBOL_GPL(qeth_dbf_longtext);
--
next prev parent reply other threads:[~2008-06-06 10:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-06 10:37 [patch 0/5] s390: qeth fixes for 2.6.26 frank.blaschka
2008-06-06 10:37 ` [patch 1/5] qeth: layer 3 Oops in ip event handler frank.blaschka
2008-06-06 10:37 ` [patch 2/5] qeth: Use ccw_device_get_id() frank.blaschka
2008-06-06 10:37 ` [patch 3/5] qeth: reduce number of kernel messages frank.blaschka
2008-06-06 10:37 ` frank.blaschka [this message]
2008-06-06 10:37 ` [patch 5/5] qeth: start dev queue after tx drop error frank.blaschka
2008-06-10 22:21 ` Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080606103829.729388000@de.ibm.com \
--to=frank.blaschka@de.ibm.com \
--cc=jgarzik@pobox.com \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=ptiedem@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).