2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

files: print a correct minor numbers for unsupported character devices

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2014-04-01 15:46:00 +04:00
committed by Pavel Emelyanov
parent e1d43c4f8e
commit 35ed09fe53

View File

@@ -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);
}
}