]> err.no Git - linux-2.6/commit
IB/mthca: Don't print debugging info until we have all values
authorRoland Dreier <rolandd@cisco.com>
Sat, 11 Feb 2006 02:02:44 +0000 (18:02 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sat, 11 Feb 2006 02:02:44 +0000 (18:02 -0800)
commitf295c79b6766b25fe8c1aad88211c54d1caa7e0b
tree116e8255895a00c133637b3b7aa9559daba02a94
parent7bcb974ef6a0ae903888272c92c66ea779388c01
IB/mthca: Don't print debugging info until we have all values

When debugging is enabled, the mthca_QUERY_DEV_LIM() firmware command
function prints out some of the device limits that it queries.
However the debugging prints happen before all of the fields are
extracted from the firmware response, so some of the values that get
printed are uninitialized junk.  Move the prints to the end of the
function to fix this.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c