drbd: Turn drbd_printk() into a polymorphic macro
authorAndreas Gruenbacher <agruen@linbit.com>
Wed, 6 Jul 2011 08:57:39 +0000 (10:57 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:45:02 +0000 (16:45 +0100)
commit3b52beffc57d6f1498a29d4edcb1cc2ad81241ec
treeb958a13b5fbf72e668fc5386050a80a8f5b22290
parentd01801710265cfb7bd8928ae7c3be4d9d15ceeb0
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>
drivers/block/drbd/drbd_int.h
This page took 0.025473 seconds and 5 git commands to generate.