whitespace fixes. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2013-01-14 01:34:48 +01:00
parent 5218515508
commit 6967578728
40 changed files with 261 additions and 262 deletions

View File

@ -22,7 +22,8 @@ int setlogcons_main(int argc UNUSED_PARAM, char **argv)
struct { struct {
char fn; char fn;
char subarg; char subarg;
} arg = { 11, /* redirect kernel messages */ } arg = {
11, /* redirect kernel messages */
0 /* to specified console (current as default) */ 0 /* to specified console (current as default) */
}; };

View File

@ -1129,8 +1129,7 @@ static void ife_print(struct interface *ptr)
printf(" "); printf(" ");
if (ptr->map.irq) if (ptr->map.irq)
printf("Interrupt:%d ", ptr->map.irq); printf("Interrupt:%d ", ptr->map.irq);
if (ptr->map.base_addr >= 0x100) /* Only print devices using it for if (ptr->map.base_addr >= 0x100) /* Only print devices using it for I/O maps */
I/O maps */
printf("Base address:0x%lx ", printf("Base address:0x%lx ",
(unsigned long) ptr->map.base_addr); (unsigned long) ptr->map.base_addr);
if (ptr->map.mem_start) { if (ptr->map.mem_start) {

View File

@ -2334,8 +2334,7 @@ set_freq(double freq) /* frequency update */
if (pll_status & STA_PPSTIME) if (pll_status & STA_PPSTIME)
report_event(EVNT_KERN, report_event(EVNT_KERN,
NULL, "PPS disabled"); NULL, "PPS disabled");
ntv.status &= ~(STA_PPSTIME | ntv.status &= ~(STA_PPSTIME | STA_PPSFREQ);
STA_PPSFREQ);
} }
if (sys_leap == LEAP_ADDSECOND) if (sys_leap == LEAP_ADDSECOND)
ntv.status |= STA_INS; ntv.status |= STA_INS;

View File

@ -165,7 +165,7 @@ static NOINLINE void do_shm(void)
case STATUS: case STATUS:
printf("------ Shared Memory %s --------\n", "Status"); printf("------ Shared Memory %s --------\n", "Status");
printf( "segments allocated %d\n" printf("segments allocated %d\n"
"pages allocated %ld\n" "pages allocated %ld\n"
"pages resident %ld\n" "pages resident %ld\n"
"pages swapped %ld\n" "pages swapped %ld\n"
@ -179,25 +179,25 @@ static NOINLINE void do_shm(void)
case CREATOR: case CREATOR:
printf("------ Shared Memory %s --------\n", "Segment Creators/Owners"); printf("------ Shared Memory %s --------\n", "Segment Creators/Owners");
printf( "%-10s %-10s %-10s %-10s %-10s %-10s\n", printf("%-10s %-10s %-10s %-10s %-10s %-10s\n",
"shmid", "perms", "cuid", "cgid", "uid", "gid"); "shmid", "perms", "cuid", "cgid", "uid", "gid");
break; break;
case TIME: case TIME:
printf("------ Shared Memory %s --------\n", "Attach/Detach/Change Times"); printf("------ Shared Memory %s --------\n", "Attach/Detach/Change Times");
printf( "%-10s %-10s %-20s %-20s %-20s\n", printf("%-10s %-10s %-20s %-20s %-20s\n",
"shmid", "owner", "attached", "detached", "changed"); "shmid", "owner", "attached", "detached", "changed");
break; break;
case PID: case PID:
printf("------ Shared Memory %s --------\n", "Creator/Last-op"); printf("------ Shared Memory %s --------\n", "Creator/Last-op");
printf( "%-10s %-10s %-10s %-10s\n", printf("%-10s %-10s %-10s %-10s\n",
"shmid", "owner", "cpid", "lpid"); "shmid", "owner", "cpid", "lpid");
break; break;
default: default:
printf("------ Shared Memory %s --------\n", "Segments"); printf("------ Shared Memory %s --------\n", "Segments");
printf( "%-10s %-10s %-10s %-10s %-10s %-10s %-12s\n", printf("%-10s %-10s %-10s %-10s %-10s %-10s %-12s\n",
"key", "shmid", "owner", "perms", "bytes", "nattch", "key", "shmid", "owner", "perms", "bytes", "nattch",
"status"); "status");
break; break;
@ -292,20 +292,20 @@ static NOINLINE void do_sem(void)
case STATUS: case STATUS:
printf("------ Semaphore %s --------\n", "Status"); printf("------ Semaphore %s --------\n", "Status");
printf( "used arrays = %d\n" printf("used arrays = %d\n"
"allocated semaphores = %d\n", "allocated semaphores = %d\n",
seminfo.semusz, seminfo.semaem); seminfo.semusz, seminfo.semaem);
return; return;
case CREATOR: case CREATOR:
printf("------ Semaphore %s --------\n", "Arrays Creators/Owners"); printf("------ Semaphore %s --------\n", "Arrays Creators/Owners");
printf( "%-10s %-10s %-10s %-10s %-10s %-10s\n", printf("%-10s %-10s %-10s %-10s %-10s %-10s\n",
"semid", "perms", "cuid", "cgid", "uid", "gid"); "semid", "perms", "cuid", "cgid", "uid", "gid");
break; break;
case TIME: case TIME:
printf("------ Shared Memory %s --------\n", "Operation/Change Times"); printf("------ Shared Memory %s --------\n", "Operation/Change Times");
printf( "%-8s %-10s %-26.24s %-26.24s\n", printf("%-8s %-10s %-26.24s %-26.24s\n",
"shmid", "owner", "last-op", "last-changed"); "shmid", "owner", "last-op", "last-changed");
break; break;
@ -314,7 +314,7 @@ static NOINLINE void do_sem(void)
default: default:
printf("------ Semaphore %s --------\n", "Arrays"); printf("------ Semaphore %s --------\n", "Arrays");
printf( "%-10s %-10s %-10s %-10s %-10s\n", printf("%-10s %-10s %-10s %-10s %-10s\n",
"key", "semid", "owner", "perms", "nsems"); "key", "semid", "owner", "perms", "nsems");
break; break;
} }
@ -383,7 +383,7 @@ static NOINLINE void do_msg(void)
if ((msgctl(0, IPC_INFO, (struct msqid_ds *) (void *) &msginfo)) < 0) if ((msgctl(0, IPC_INFO, (struct msqid_ds *) (void *) &msginfo)) < 0)
return; return;
printf("------ Message%s --------\n", "s: Limits"); printf("------ Message%s --------\n", "s: Limits");
printf( "max queues system wide = %d\n" printf("max queues system wide = %d\n"
"max size of message (bytes) = %d\n" "max size of message (bytes) = %d\n"
"default max size of queue (bytes) = %d\n", "default max size of queue (bytes) = %d\n",
msginfo.msgmni, msginfo.msgmax, msginfo.msgmnb); msginfo.msgmni, msginfo.msgmax, msginfo.msgmnb);
@ -391,7 +391,7 @@ static NOINLINE void do_msg(void)
case STATUS: case STATUS:
printf("------ Message%s --------\n", "s: Status"); printf("------ Message%s --------\n", "s: Status");
printf( "allocated queues = %d\n" printf("allocated queues = %d\n"
"used headers = %d\n" "used headers = %d\n"
"used space = %d bytes\n", "used space = %d bytes\n",
msginfo.msgpool, msginfo.msgmap, msginfo.msgtql); msginfo.msgpool, msginfo.msgmap, msginfo.msgtql);
@ -399,25 +399,25 @@ static NOINLINE void do_msg(void)
case CREATOR: case CREATOR:
printf("------ Message%s --------\n", " Queues: Creators/Owners"); printf("------ Message%s --------\n", " Queues: Creators/Owners");
printf( "%-10s %-10s %-10s %-10s %-10s %-10s\n", printf("%-10s %-10s %-10s %-10s %-10s %-10s\n",
"msqid", "perms", "cuid", "cgid", "uid", "gid"); "msqid", "perms", "cuid", "cgid", "uid", "gid");
break; break;
case TIME: case TIME:
printf("------ Message%s --------\n", " Queues Send/Recv/Change Times"); printf("------ Message%s --------\n", " Queues Send/Recv/Change Times");
printf( "%-8s %-10s %-20s %-20s %-20s\n", printf("%-8s %-10s %-20s %-20s %-20s\n",
"msqid", "owner", "send", "recv", "change"); "msqid", "owner", "send", "recv", "change");
break; break;
case PID: case PID:
printf("------ Message%s --------\n", " Queues PIDs"); printf("------ Message%s --------\n", " Queues PIDs");
printf( "%-10s %-10s %-10s %-10s\n", printf("%-10s %-10s %-10s %-10s\n",
"msqid", "owner", "lspid", "lrpid"); "msqid", "owner", "lspid", "lrpid");
break; break;
default: default:
printf("------ Message%s --------\n", " Queues"); printf("------ Message%s --------\n", " Queues");
printf( "%-10s %-10s %-10s %-10s %-12s %-12s\n", printf("%-10s %-10s %-10s %-10s %-12s %-12s\n",
"key", "msqid", "owner", "perms", "used-bytes", "messages"); "key", "msqid", "owner", "perms", "used-bytes", "messages");
break; break;
} }