Skip to content

Commit

Permalink
IB/ehca: ehca_gen_warn() should always print
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Joachim Fenkes authored and Roland Dreier committed Oct 10, 2007
1 parent e372219 commit 86dce44
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drivers/infiniband/hw/ehca/ehca_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,12 @@ extern int ehca_debug_level;
} while (0)

#define ehca_gen_warn(format, arg...) \
do { \
if (unlikely(ehca_debug_level)) \
printk(KERN_INFO "PU%04x EHCA_WARN:%s " format "\n", \
get_paca()->paca_index, __FUNCTION__, ## arg); \
} while (0)
printk(KERN_INFO "PU%04x EHCA_WARN:%s " format "\n", \
get_paca()->paca_index, __FUNCTION__, ## arg)

#define ehca_gen_err(format, arg...) \
printk(KERN_ERR "PU%04x EHCA_ERR:%s " format "\n", \
get_paca()->paca_index, __FUNCTION__, ## arg)
get_paca()->paca_index, __FUNCTION__, ## arg)

/**
* ehca_dmp - printk a memory block, whose length is n*8 bytes.
Expand Down

0 comments on commit 86dce44

Please sign in to comment.