Thread (1 message) 1 message, 1 author, 2017-07-22
  • (off-list ancestor, not in this archive)
  • Re: [PATCH] bpf.2: ffix · Michael Kerrisk (man-pages) <hidden> · 2017-07-22

Re: [PATCH] bpf.2: ffix

From: Michael Kerrisk (man-pages) <hidden>
Date: 2017-07-22 07:20:15

On 07/21/2017 03:55 PM, Douglas Caetano dos Santos wrote:
'\' must be escaped.
Thanks, Douglas. Applied.

Cheers,

Michael

quoted hunk
Signed-off-by: Douglas Caetano dos Santos <douglascs-6ANAkuZINJhwFqzsTH5u/w@public.gmane.org>
---
 man2/bpf.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man2/bpf.2 b/man2/bpf.2
index d4fca8245..2360c11b6 100644
--- a/man2/bpf.2
+++ b/man2/bpf.2
@@ -986,7 +986,7 @@ main(int argc, char **argv)
         assert(bpf_lookup_elem(map_fd, &key, &tcp_cnt) == 0);
         key = IPPROTO_UDP;
         assert(bpf_lookup_elem(map_fd, &key, &udp_cnt) == 0);
-        printf("TCP %lld UDP %lld packets\n", tcp_cnt, udp_cnt);
+        printf("TCP %lld UDP %lld packets\\n", tcp_cnt, udp_cnt);
         sleep(1);
     }
 

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help