better chan_printk() output

Add the word "chan-" before channel numbers

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10446 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Oron Peled 2012-01-25 21:16:40 +00:00 committed by Tzafrir Cohen
parent b79e172d23
commit ac95ade8ae

View File

@ -1523,7 +1523,7 @@ struct mutex {
printk(KERN_ ## level "%s%s-%s: span-%d: " fmt, #level, \
category, THIS_MODULE->name, (span)->spanno, ## __VA_ARGS__)
#define chan_printk(level, category, chan, fmt, ...) \
printk(KERN_ ## level "%s%s-%s: %d: " fmt, #level, \
printk(KERN_ ## level "%s%s-%s: chan-%d: " fmt, #level, \
category, THIS_MODULE->name, (chan)->channo, ## __VA_ARGS__)
#define dahdi_err(fmt, ...) DAHDI_PRINTK(ERR, "", fmt, ## __VA_ARGS__)
#define span_info(span, fmt, ...) span_printk(INFO, "", span, fmt, \