Skip to content

Commit b7fed77

Browse files
committed
Fix a few lines that runoff is complaining about that they are too long
1 parent 5f03799 commit b7fed77

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

console.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ consoleintr(int (*getc)(void))
195195
while((c = getc()) >= 0){
196196
switch(c){
197197
case C('P'): // Process listing.
198-
doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later
198+
// procdump() locks cons.lock indirectly; invoke later
199+
doprocdump = 1;
199200
break;
200201
case C('U'): // Kill line.
201202
while(input.e != input.w &&

fs.c

+7-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
#define min(a, b) ((a) < (b) ? (a) : (b))
2424
static void itrunc(struct inode*);
25-
struct superblock sb; // there should be one per dev, but we run with one dev
25+
// there should be one superblock per disk device, but we run with
26+
// only one device
27+
struct superblock sb;
2628

2729
// Read the super block.
2830
void
@@ -164,8 +166,10 @@ iinit(int dev)
164166
{
165167
initlock(&icache.lock, "icache");
166168
readsb(dev, &sb);
167-
cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d inodestart %d bmap start %d\n", sb.size,
168-
sb.nblocks, sb.ninodes, sb.nlog, sb.logstart, sb.inodestart, sb.bmapstart);
169+
cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\
170+
inodestart %d bmap start %d\n", sb.size, sb.nblocks,
171+
sb.ninodes, sb.nlog, sb.logstart, sb.inodestart,
172+
sb.bmapstart);
169173
}
170174

171175
static struct inode* iget(uint dev, uint inum);

fs.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
#define BSIZE 512 // block size
77

88
// Disk layout:
9-
// [ boot block | super block | log | inode blocks | free bit map | data blocks ]
9+
// [ boot block | super block | log | inode blocks |
10+
// free bit map | data blocks]
1011
//
11-
// mkfs computes the super block and builds an initial file system. The super describes
12-
// the disk layout:
12+
// mkfs computes the super block and builds an initial file system. The
13+
// super block describes the disk layout:
1314
struct superblock {
1415
uint size; // Size of file system image (blocks)
1516
uint nblocks; // Number of data blocks

0 commit comments

Comments
 (0)