Thread (15 messages) 15 messages, 2 authors, 2015-03-20

Re: [PATCH v8 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk()

From: Alexei Starovoitov <hidden>
Date: 2015-03-20 21:44:27
Also in: lkml, netdev

On 3/20/15 2:22 PM, Steven Rostedt wrote:
quoted
+/* limited trace_printk()
+ * only %d %u %x %ld %lu %lx %lld %llu %llx %p conversion specifiers allowed
+ */
Ah! Again, don't contaminate the rest of the kernel with net comment
styles! :-)
ok :)
quoted
+		} else if (fmt[i] == 'p') {
+			mod[fmt_cnt]++;
+			i++;
+			if (!isspace(fmt[i]) && fmt[i] != 0)
I wonder if we should allow punctuation here too? None alpha-numeric
characters?
yes. just checked all of ispunct characters after %p.
All should be fine.

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help