]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
IB/mthca: Fix printk format used for firmware version in warning
authorRoland Dreier <rolandd@cisco.com>
Wed, 18 Jul 2007 01:37:42 +0000 (18:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 18 Jul 2007 01:37:42 +0000 (18:37 -0700)
When warning about out-of-date firmware, current mthca code messes up
the formatting of the version if the subminor doesn't have three
digits.  It doesn't fill the field with 0s so we end up with:

    ib_mthca 0000:0b:00.0: HCA FW version 1.1.  0 is old (1.2.  0 is current).

Change the format from "%3d" to "%03d" to get the right thing printed.

Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found