]> granicus.if.org Git - strace/commit
Move device number printing code into a separate routine
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 26 Dec 2016 12:25:35 +0000 (15:25 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 29 Dec 2016 00:11:24 +0000 (00:11 +0000)
commit32e813144c3ebb078d8da9d5325255b6aa933a9b
tree32e01a11f32b6ff57dc21d6bc35819c07d904cf1
parent54f2397c84f18a666d9e300f342141caf79c2a61
Move device number printing code into a separate routine

* print_dev_t.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* defs.h (print_dev_t): New prototype.
* dm.c: Do not include <sys/sysmacros.h>.
(dm_decode_device, dm_print_dev, dm_decode_dm_name_list): Use
print_dev_t function for printing device numbers.
* mknod.c: Do not include <sys/sysmacros.h>.
(decode_mknod): Use print_dev_t function for printing device number.
* print_struct_stat.c: Do not include <sys/sysmacros.h>.
(print_struct_stat): Use print_dev_t function for printing device
numbers.

Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
Makefile.am
defs.h
dm.c
mknod.c
print_dev_t.c [new file with mode: 0644]
print_struct_stat.c