Style fixes, no code changes
* desc.c (sys_io_getevents): Indentation fix. * file.c (sys_xstat): Remove space after function name. (decode_mknod): Indentation fix. * net.c (printsockopt): Indentation fix. * process.c (unalignctl_string): Indentation fix. (sys_sched_getscheduler): Remove space after ! operator. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e83e157021
commit
b237b1b20d
2
desc.c
2
desc.c
@ -1011,7 +1011,7 @@ sys_io_getevents(struct tcb *tcp)
|
||||
}
|
||||
tprints("}, ");
|
||||
#else
|
||||
tprints("{...}");
|
||||
tprints("{...}");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
13
file.c
13
file.c
@ -1385,7 +1385,7 @@ sys_xstat(struct tcb *tcp)
|
||||
} 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]);
|
||||
@ -1401,7 +1401,7 @@ sys_fxstat(struct tcb *tcp)
|
||||
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]);
|
||||
@ -1419,7 +1419,7 @@ sys_lxstat(struct tcb *tcp)
|
||||
} 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]);
|
||||
@ -2125,15 +2125,16 @@ decode_mknod(struct tcb *tcp, int offset)
|
||||
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;
|
||||
|
8
net.c
8
net.c
@ -2106,10 +2106,10 @@ printsockopt(struct tcb *tcp, int level, int name, long addr, int len)
|
||||
printxval(sockrawoptions, name, "RAW_???");
|
||||
switch (name) {
|
||||
#if defined(ICMP_FILTER)
|
||||
case ICMP_FILTER:
|
||||
tprints(", ");
|
||||
printicmpfilter(tcp, addr);
|
||||
return 0;
|
||||
case ICMP_FILTER:
|
||||
tprints(", ");
|
||||
printicmpfilter(tcp, addr);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
16
process.c
16
process.c
@ -241,19 +241,19 @@ static const struct xlat prctl_options[] = {
|
||||
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;
|
||||
@ -2745,7 +2745,7 @@ sys_sched_getscheduler(struct tcb *tcp)
|
||||
{
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user