Re: [RFC][PATCH 3/3] vsprintf: Add support for %pb and friends to vbin_printf()

2016-06-30 Thread Steven Rostedt
On Thu, 30 Jun 2016 16:56:34 +0200 Jiri Olsa wrote: > On Wed, Jun 29, 2016 at 04:05:25PM -0400, Steven Rostedt wrote: > > SNIP > > > } > > @@ -2552,11 +2561,18 @@ int bstr_printf(char *buf, size_t size, const char > > *fmt, const u32 *bin_buf) > > } > > > >

Re: [RFC][PATCH 3/3] vsprintf: Add support for %pb and friends to vbin_printf()

2016-06-30 Thread Jiri Olsa
On Wed, Jun 29, 2016 at 04:05:25PM -0400, Steven Rostedt wrote: SNIP > } > @@ -2552,11 +2561,18 @@ int bstr_printf(char *buf, size_t size, const char > *fmt, const u32 *bin_buf) > } > > case FORMAT_TYPE_PTR: { > + unsigned l

[RFC][PATCH 3/3] vsprintf: Add support for %pb and friends to vbin_printf()

2016-06-29 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" printk() allows a %pb to print out cpumasks. As it uses a pointer to reference the mask it can be problematic for vbin_printf() to use, as the referencing is done at a later time (via bstr_printf()). Instead of saving the pointer to the cpumask, simply save the en