]> xenbits.xensource.com Git - xen.git/commit
printk: introduce separator modifiers for the %ph custom format
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 26 Feb 2016 11:31:11 +0000 (12:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Feb 2016 11:31:11 +0000 (12:31 +0100)
commit3d26674d088ab0d0f197bbfafaba3767d195986b
tree19d9bb9e3c091da9554c9c7678ffdf04ae9f9585
parentdf5ded9a768893ebf0e479d6e4f51d5d4f31a05e
printk: introduce separator modifiers for the %ph custom format

The printk formats %*ph{C,D,N} are chosen to be compatible with their Linux
counterparts.

Sample:

  (XEN) buf: 00 01 03 07 78 65 6e 00
  (XEN) buf: 00:01:03:07:78:65:6e:00
  (XEN) buf: 00-01-03-07-78-65-6e-00
  (XEN) buf: 0001030778656e00

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
docs/misc/printk-formats.txt
xen/common/vsprintf.c