public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 13519] New: Syntax error. Not enough parameters for macro 'qla_printk'.
@ 2009-06-12 12:25 bugzilla-daemon
  2009-06-12 12:32 ` Matthew Wilcox
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2009-06-12 12:25 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=13519

           Summary: Syntax error. Not enough parameters for macro
                    'qla_printk'.
           Product: SCSI Drivers
           Version: 2.5
    Kernel Version: 2.6.30
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: QLOGIC QLA2XXX
        AssignedTo: scsi_drivers-qla2xxx@kernel-bugs.osdl.org
        ReportedBy: ettl.martin@gmx.de
        Regression: No


Hi,

i have detected a wrong macro call in file qla_sup.c. To detect this issue i
used the static code analysis tool cppcheck. It prints the following output:

[linux-2.6.30/drivers/scsi/qla2xxx/qla_sup.c:352]: (error) Syntax error. Not
enough parameters for macro 'qla_printk'.

Take a look at file qla_sup.c line 352 

                DEBUG9_10(qla_printk(
                    "NVRAM didn't go ready...\n"));


The maro definition is in file qla_def.h (2657):

#define qla_printk(level, ha, format, arg...) \
    dev_printk(level , &((ha)->pdev->dev) , format , ## arg)

As you can see, it needs more than one parameter.

Best regards

Ettl Martin

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-06-29 11:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12 12:25 [Bug 13519] New: Syntax error. Not enough parameters for macro 'qla_printk' bugzilla-daemon
2009-06-12 12:32 ` Matthew Wilcox
2009-06-12 12:32 ` [Bug 13519] " bugzilla-daemon
2009-06-12 12:35 ` bugzilla-daemon
2009-06-29 11:50 ` bugzilla-daemon
2009-06-29 11:50 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox