mbr: Save one byte
authorWill Sowerbutts <will@sowerbutts.com>
Mon, 5 Jan 2015 00:12:29 +0000 (00:12 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Mon, 5 Jan 2015 00:14:04 +0000 (00:14 +0000)
Kernel/dev/mbr.c

index 7c1daea..3b78c43 100644 (file)
@@ -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);