decode_mknod(struct tcb *tcp, int offset)
{
int mode = tcp->u_arg[offset + 1];
+ unsigned int dev;
printpath(tcp, tcp->u_arg[offset]);
tprintf(", %s", sprintmode(mode));
switch (mode & S_IFMT) {
case S_IFCHR:
case S_IFBLK:
- tprintf(", makedev(%lu, %lu)",
- (unsigned long) major(tcp->u_arg[offset + 2]),
- (unsigned long) minor(tcp->u_arg[offset + 2]));
+ dev = tcp->u_arg[offset + 2];
+ tprintf(", makedev(%u, %u)", major(dev), minor(dev));
break;
}
}