From: Andreas Gruenbacher Date: Wed, 6 Jul 2011 08:57:39 +0000 (+0200) Subject: drbd: Turn drbd_printk() into a polymorphic macro X-Git-Tag: v3.15-rc1~134^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b52beffc57d6f1498a29d4edcb1cc2ad81241ec;p=pandora-kernel.git 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 Signed-off-by: Philipp Reisner --- Reading git-diff-tree failed