Commit 2f223fdc authored by Pavel Emelyanov's avatar Pavel Emelyanov

show: Clean fdinfo and pstree pretty fmt

Use <field>: format.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c35c0372
...@@ -55,7 +55,7 @@ static LIST_HEAD(pstree_list); ...@@ -55,7 +55,7 @@ static LIST_HEAD(pstree_list);
void show_files(int fd_files) void show_files(int fd_files)
{ {
pb_show_plain_pretty(fd_files, PB_FDINFO, "2:%#o 4:%d"); pb_show_plain_pretty(fd_files, PB_FDINFO, "flags:%#o fd:%d");
} }
void show_fown_cont(void *p) void show_fown_cont(void *p)
...@@ -214,7 +214,7 @@ void print_image_data(int fd, unsigned int length, int show) ...@@ -214,7 +214,7 @@ void print_image_data(int fd, unsigned int length, int show)
static void show_pagemaps(int fd, void *obj) static void show_pagemaps(int fd, void *obj)
{ {
pb_show_plain_pretty(fd, PB_PAGEMAP, "2:%u"); pb_show_plain_pretty(fd, PB_PAGEMAP, "nr_pages:%u");
} }
void show_pagemap(int fd) void show_pagemap(int fd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment