Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull bprintf() removal from Steven Rostedt:

- Remove unused bprintf() function, that was added with the rest of the
"bin-printf" functions.

These are functions that are used by trace_printk() that allows to
quickly save the format and arguments into the ring buffer without
the expensive processing of converting numbers to ASCII. Then on
output, at a much later time, the ring buffer is read and the string
processing occurs then. The bprintf() was added for consistency but
was never used. It can be safely removed.

* tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
printf: Remove unused 'bprintf'

-24
-1
include/linux/string.h
··· 335 335 #ifdef CONFIG_BINARY_PRINTF 336 336 int vbin_printf(u32 *bin_buf, size_t size, const char *fmt, va_list args); 337 337 int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf); 338 - int bprintf(u32 *bin_buf, size_t size, const char *fmt, ...) __printf(3, 4); 339 338 #endif 340 339 341 340 extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos,
-23
lib/vsprintf.c
··· 3428 3428 } 3429 3429 EXPORT_SYMBOL_GPL(bstr_printf); 3430 3430 3431 - /** 3432 - * bprintf - Parse a format string and place args' binary value in a buffer 3433 - * @bin_buf: The buffer to place args' binary value 3434 - * @size: The size of the buffer(by words(32bits), not characters) 3435 - * @fmt: The format string to use 3436 - * @...: Arguments for the format string 3437 - * 3438 - * The function returns the number of words(u32) written 3439 - * into @bin_buf. 3440 - */ 3441 - int bprintf(u32 *bin_buf, size_t size, const char *fmt, ...) 3442 - { 3443 - va_list args; 3444 - int ret; 3445 - 3446 - va_start(args, fmt); 3447 - ret = vbin_printf(bin_buf, size, fmt, args); 3448 - va_end(args); 3449 - 3450 - return ret; 3451 - } 3452 - EXPORT_SYMBOL_GPL(bprintf); 3453 - 3454 3431 #endif /* CONFIG_BINARY_PRINTF */ 3455 3432 3456 3433 /**