libmultipath: Improve debugging of log messages
authorHannes Reinecke <hare@suse.de>
Wed, 12 Jan 2011 09:07:58 +0000 (10:07 +0100)
committerHannes Reinecke <hare@suse.de>
Tue, 17 May 2011 10:36:48 +0000 (12:36 +0200)
commit155f87ade05e27205329f4e833212d330c60b293
tree21fa1974499955a33134ede38353d068b557e2f7
parente7b54e70bdd1d6020351a2af2e92dfb16724f2cd
libmultipath: Improve debugging of log messages

With the current definition of log messages we
only see something utterly pointless when using
gdb:
(gdb) print *(struct logmsg *)la->buff
$15 = {prio = 6, next = 0x80015a68,
  str = 0x73687574646f776e <Address 0x73687574646f776e out of bounds>}

With this fix we are able to see the message
directly:

(gdb) print *(struct logmsg *)la->buff
$6 = {prio = 5, next = 0x8001b220,
  str = 0x8001d240 "--------shut down-------\n"}

References: bnc#659859

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/log.h