From 35ed09fe53239e48ee4121c306d70d7eb6cd879b Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Tue, 1 Apr 2014 15:46:00 +0400 Subject: [PATCH] files: print a correct minor numbers for unsupported character devices Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files.c b/files.c index 3cf5e470c..ae5def7dd 100644 --- a/files.c +++ b/files.c @@ -283,7 +283,7 @@ static int dump_chrdev(struct fd_parms *p, int lfd, const int fdinfo) default: { char more[32]; - sprintf(more, "%d:%d", maj, minor(p->stat.st_dev)); + sprintf(more, "%d:%d", maj, minor(p->stat.st_rdev)); return dump_unsupp_fd(p, lfd, fdinfo, "chr", more); } }