} else {
# ifdef _STAT64_VER
if (tcp->u_arg[0] == _STAT64_VER)
- printstat64 (tcp, tcp->u_arg[2]);
+ printstat64(tcp, tcp->u_arg[2]);
else
# endif
printstat(tcp, tcp->u_arg[2]);
else {
# ifdef _STAT64_VER
if (tcp->u_arg[0] == _STAT64_VER)
- printstat64 (tcp, tcp->u_arg[2]);
+ printstat64(tcp, tcp->u_arg[2]);
else
# endif
printstat(tcp, tcp->u_arg[2]);
} else {
# ifdef _STAT64_VER
if (tcp->u_arg[0] == _STAT64_VER)
- printstat64 (tcp, tcp->u_arg[2]);
+ printstat64(tcp, tcp->u_arg[2]);
else
# endif
printstat(tcp, tcp->u_arg[2]);
printpath(tcp, tcp->u_arg[offset]);
tprintf(", %s", sprintmode(mode));
switch (mode & S_IFMT) {
- case S_IFCHR: case S_IFBLK:
+ case S_IFCHR:
+ case S_IFBLK:
#ifdef LINUXSPARC
if (current_personality == 1)
- tprintf(", makedev(%lu, %lu)",
+ tprintf(", makedev(%lu, %lu)",
(unsigned long) ((tcp->u_arg[offset + 2] >> 18) & 0x3fff),
(unsigned long) (tcp->u_arg[offset + 2] & 0x3ffff));
else
#endif
- tprintf(", makedev(%lu, %lu)",
+ tprintf(", makedev(%lu, %lu)",
(unsigned long) major(tcp->u_arg[offset + 2]),
(unsigned long) minor(tcp->u_arg[offset + 2]));
break;
static const char *
unalignctl_string(unsigned int ctl)
{
- static char buf[16];
+ static char buf[sizeof(int)*2 + 2];
switch (ctl) {
#ifdef PR_UNALIGN_NOPRINT
- case PR_UNALIGN_NOPRINT:
- return "NOPRINT";
+ case PR_UNALIGN_NOPRINT:
+ return "NOPRINT";
#endif
#ifdef PR_UNALIGN_SIGBUS
- case PR_UNALIGN_SIGBUS:
- return "SIGBUS";
+ case PR_UNALIGN_SIGBUS:
+ return "SIGBUS";
#endif
- default:
- break;
+ default:
+ break;
}
sprintf(buf, "%x", ctl);
return buf;
{
if (entering(tcp)) {
tprintf("%d", (int) tcp->u_arg[0]);
- } else if (! syserror(tcp)) {
+ } else if (!syserror(tcp)) {
tcp->auxstr = xlookup(schedulers, tcp->u_rval);
if (tcp->auxstr != NULL)
return RVAL_STR;