]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
vsprintf: add binary printf
authorLai Jiangshan <laijs@cn.fujitsu.com>
Fri, 6 Mar 2009 16:21:46 +0000 (17:21 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 6 Mar 2009 16:39:04 +0000 (17:39 +0100)
commit4370aa4aa75391a5e2e06bccb0919109f725ed8e
tree602a6ea4e404d17e610d4a9979d615ff2d0bfd98
parentf036be96dd9ce442ffb9ab33e3c165f5178815c0
vsprintf: add binary printf

Impact: add new APIs for binary trace printk infrastructure

vbin_printf(): write args to binary buffer, string is copied
when "%s" is occurred.

bstr_printf(): read from binary buffer for args and format a string

[fweisbec@gmail.com: rebase]

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <1236356510-8381-2-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/string.h
lib/Kconfig
lib/vsprintf.c