]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
qeth: Prepare-function to call s390dbf was wrong
authorPeter Tiedemann <ptiedem@de.ibm.com>
Fri, 6 Jun 2008 10:37:47 +0000 (12:37 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 10 Jun 2008 22:20:36 +0000 (18:20 -0400)
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>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/s390/net/qeth_core_main.c

index f428d757e8888d6a49841b1401a5ae92b8575d07..9a71dae223e81d94343d1ae72b54636bca290e12 100644 (file)
@@ -3983,15 +3983,17 @@ static void qeth_unregister_dbf_views(void)
        }
 }
 
-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);