From 3140333cd846a72a1c63c0ac6e39e1e8d5afadc7 Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Thu, 2 Nov 2017 08:53:14 +0000 Subject: [PATCH] Fix code style --- arch/multiboot.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/multiboot.c b/arch/multiboot.c index 82b94f2..f256681 100644 --- a/arch/multiboot.c +++ b/arch/multiboot.c @@ -144,17 +144,17 @@ void print_multiboot_tag_mmap(const struct multiboot_tag_mmap *const tag) printf("Memory map:\n"); for ( - multiboot_memory_map_t *mmap = ((struct multiboot_tag_mmap *) tag)->entries; - (unsigned char *) mmap < (unsigned char *) tag + tag->size; - mmap = (multiboot_memory_map_t *)((unsigned long) mmap + ((struct multiboot_tag_mmap *) tag)->entry_size) + const multiboot_memory_map_t *mmap = tag->entries; + (unsigned char*)mmap < (unsigned char*)tag + tag->size; + mmap = (multiboot_memory_map_t*)((unsigned long) mmap + tag->entry_size) ) { printf( " base_addr = 0x%x%x, length = 0x%x%x, type = 0x%x\n", - (unsigned) (mmap->addr >> 32), - (unsigned) (mmap->addr & 0xffffffff), - (unsigned) (mmap->len >> 32), - (unsigned) (mmap->len & 0xffffffff), - (unsigned) mmap->type + (unsigned)(mmap->addr >> 32), + (unsigned)(mmap->addr & 0xffffffff), + (unsigned)(mmap->len >> 32), + (unsigned)(mmap->len & 0xffffffff), + (unsigned)mmap->type ); } }