git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[lunaix-os.git]
/
lunaix-os
/
kernel
/
block
/
blkpart_gpt.c
diff --git
a/lunaix-os/kernel/block/blkpart_gpt.c
b/lunaix-os/kernel/block/blkpart_gpt.c
index 3eee27727008917155ab72366fa70dd1e1ac2115..9d49bfcb98d95845449c4e69a8251570f0264cb8 100644
(file)
--- a/
lunaix-os/kernel/block/blkpart_gpt.c
+++ b/
lunaix-os/kernel/block/blkpart_gpt.c
@@
-8,7
+8,7
@@
#include <lib/crc.h>
#define GPT_BLKSIZE 512
#include <lib/crc.h>
#define GPT_BLKSIZE 512
-#define LBA2OFF(lba) ((lba)
*
GPT_BLKSIZE)
+#define LBA2OFF(lba) ((lba)
*
GPT_BLKSIZE)
#define ENT_PER_BLK (GPT_BLKSIZE / sizeof(struct gpt_entry))
#define GPTSIG_LO 0x20494645UL
#define ENT_PER_BLK (GPT_BLKSIZE / sizeof(struct gpt_entry))
#define GPTSIG_LO 0x20494645UL
@@
-50,7
+50,7
@@
blkpart_parse(struct device* master, struct gpt_header* header)
(ent->start_lba * GPT_BLKSIZE) / (u64_t)bdev->blk_size;
u64_t elba_local = (ent->end_lba * GPT_BLKSIZE) / (u64_t)bdev->blk_size;
(ent->start_lba * GPT_BLKSIZE) / (u64_t)bdev->blk_size;
u64_t elba_local = (ent->end_lba * GPT_BLKSIZE) / (u64_t)bdev->blk_size;
- kprintf("%s: guid part#%d: %d..%d
\n
",
+ kprintf("%s: guid part#%d: %d..%d",
bdev->bdev_id,
i,
(u32_t)slba_local,
bdev->bdev_id,
i,
(u32_t)slba_local,
@@
-83,7
+83,7
@@
blkpart_probegpt(struct device* master)
u32_t crc = gpt_hdr->hdr_cksum;
gpt_hdr->hdr_cksum = 0;
if (crc32b((void*)gpt_hdr, sizeof(*gpt_hdr)) != crc) {
u32_t crc = gpt_hdr->hdr_cksum;
gpt_hdr->hdr_cksum = 0;
if (crc32b((void*)gpt_hdr, sizeof(*gpt_hdr)) != crc) {
- kprintf(KWARN "checksum failed
\n
");
+ kprintf(KWARN "checksum failed");
// FUTURE check the backup header
return EINVAL;
}
// FUTURE check the backup header
return EINVAL;
}