]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e53841991a58681a928f5873773c06771ab763b
treeb958a13b5fbf72e668fc5386050a80a8f5b22290
parente4ea3dc02cd93114e9f0d23caba0ce4e8a55ff40
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