public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82ad53b
)
mbr: Save one byte
author
Will Sowerbutts
<will@sowerbutts.com>
Mon, 5 Jan 2015 00:12:29 +0000
(
00:12
+0000)
committer
Will Sowerbutts
<will@sowerbutts.com>
Mon, 5 Jan 2015 00:14:04 +0000
(
00:14
+0000)
Kernel/dev/mbr.c
patch
|
blob
|
history
diff --git
a/Kernel/dev/mbr.c
b/Kernel/dev/mbr.c
index
7c1daea
..
3b78c43
100644
(file)
--- a/
Kernel/dev/mbr.c
+++ b/
Kernel/dev/mbr.c
@@
-70,8
+70,8
@@
void mbr_parse(blkdev_t *blk, char letter)
the extended partition) */
blk->lba_first[next] = br_offset + br->partition[i].lba_first;
blk->lba_count[next] = br->partition[i].lba_count;
- kprintf("hd%c%d ", letter, 1+next);
next++;
+ kprintf("hd%c%d ", letter, next);
}
}
}while(lba);