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:
parent
b79e172d23
commit
ac95ade8ae
@ -1523,7 +1523,7 @@ struct mutex {
|
|||||||
printk(KERN_ ## level "%s%s-%s: span-%d: " fmt, #level, \
|
printk(KERN_ ## level "%s%s-%s: span-%d: " fmt, #level, \
|
||||||
category, THIS_MODULE->name, (span)->spanno, ## __VA_ARGS__)
|
category, THIS_MODULE->name, (span)->spanno, ## __VA_ARGS__)
|
||||||
#define chan_printk(level, category, chan, fmt, ...) \
|
#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__)
|
category, THIS_MODULE->name, (chan)->channo, ## __VA_ARGS__)
|
||||||
#define dahdi_err(fmt, ...) DAHDI_PRINTK(ERR, "", fmt, ## __VA_ARGS__)
|
#define dahdi_err(fmt, ...) DAHDI_PRINTK(ERR, "", fmt, ## __VA_ARGS__)
|
||||||
#define span_info(span, fmt, ...) span_printk(INFO, "", span, fmt, \
|
#define span_info(span, fmt, ...) span_printk(INFO, "", span, fmt, \
|
||||||
|
Loading…
Reference in New Issue
Block a user