diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2017-05-11 01:37:25 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2017-05-11 01:37:25 +0000 |
commit | eae41d39f8bac2c04cc6bb1f18322742f3bfb44e (patch) | |
tree | 7700543988eb12914afe2a1106a400a5c5dedf15 | |
parent | 6121d88afc791b6530ebf00613a5c001afe54f8a (diff) |
Casting int is required for passing uint64 value to "%u" since we don't
assume the size of int. The problem was spotted by Michele Curti.
-rw-r--r-- | sys/arch/amd64/stand/efiboot/efidev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/efiboot/efidev.c b/sys/arch/amd64/stand/efiboot/efidev.c index 41a92cdae90..c3ca38e8c6b 100644 --- a/sys/arch/amd64/stand/efiboot/efidev.c +++ b/sys/arch/amd64/stand/efiboot/efidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efidev.c,v 1.24 2016/12/24 08:41:13 yasuoka Exp $ */ +/* $OpenBSD: efidev.c,v 1.25 2017/05/11 01:37:24 yasuoka Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -789,7 +789,7 @@ efi_dump_diskinfo(void) printf("hd%d\t%u\t%u\t%u%s\t0x%x\t0x%x\t%s\n", (bdi->bios_number & 0x7f), ed->blkio->Media->BlockSize, - ed->blkio->Media->IoAlign, siz, sizu, + ed->blkio->Media->IoAlign, (int)siz, sizu, bdi->flags, bdi->checksum, (ed->blkio->Media->RemovableMedia)? "Removable" : ""); } |