strace/umount.c
Dmitry V. Levin 431d7fd21a Print the first argument of umount2 syscall as a path
* umount.c (SYS_FUNC(umount2)): Use printpath instead of printstr.

This fixes Debian bug #785050.
2015-12-07 00:10:58 +00:00

17 lines
375 B
C

#include "defs.h"
#define MNT_FORCE 0x00000001 /* Attempt to forcibily umount */
#define MNT_DETACH 0x00000002 /* Just detach from the tree */
#define MNT_EXPIRE 0x00000004 /* Mark for expiry */
#include "xlat/umount_flags.h"
SYS_FUNC(umount2)
{
printpath(tcp, tcp->u_arg[0]);
tprints(", ");
printflags(umount_flags, tcp->u_arg[1], "MNT_???");
return RVAL_DECODED;
}