summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_state.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-07-06 10:57:39 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2014-02-17 16:45:02 +0100
commit3b52beffc57d6f1498a29d4edcb1cc2ad81241ec (patch)
treeb958a13b5fbf72e668fc5386050a80a8f5b22290 /drivers/block/drbd/drbd_state.c
parentd01801710265cfb7bd8928ae7c3be4d9d15ceeb0 (diff)
downloadblackbird-op-linux-3b52beffc57d6f1498a29d4edcb1cc2ad81241ec.tar.gz
blackbird-op-linux-3b52beffc57d6f1498a29d4edcb1cc2ad81241ec.zip
drbd: Turn drbd_printk() into a polymorphic macro
This allows drbd_alert(), drbd_err(), drbd_warn(), and drbd_info() to work for a resource, device, or connection so that we don't have to introduce three separate sets of macros for that. The drbd_printk() macro itself is pretty ugly, but that problem is limited to one place in the code. Using drbd_printk() on an object type which it doesn't understand results in an undefined drbd_printk_with_wrong_object_type symbol. Signed-off-by: Andreas Gruenbacher <agruen@linbit.com> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_state.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud