Message ID | 20140703131908.GD21667@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index 388553e..f9d3e9f 100644 --- a/fs/userfaultfd.c +++ b/fs/userfaultfd.c @@ -493,7 +493,13 @@ static int userfaultfd_show_fdinfo(struct seq_file *m, struct file *f) } spin_unlock(&ctx->fault_wqh.lock); - ret = seq_printf(m, "pending:\t%lu\ntotal:\t%lu\n", pending, total); + /* + * If more protocols will be added, there will be all shown + * separated by a space. Like this: + * protocols: 0xaa 0xbb + */ + ret = seq_printf(m, "pending:\t%lu\ntotal:\t%lu\nprotocols:\t%Lx\n", + pending, total, USERFAULTFD_PROTOCOL); return ret; }