Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3760)

Unified Diff: boot.c

Issue 1133004: Stop using O_EXCL by default when opening the device for writing. (Closed)
Patch Set: D'oh! Of course. Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpt.8 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boot.c
diff --git a/boot.c b/boot.c
index 36b3560ddf1f23101fabc5c3b691030388d5fd6d..b1856db118f1c064a984ab75de24359f73928878 100644
--- a/boot.c
+++ b/boot.c
@@ -55,9 +55,8 @@ static u_long boot_size;
static void
usage_boot(void)
{
-
fprintf(stderr,
- "usage: %s [-b pmbr] [-g gptboot] [-s count] device ...\n",
+ "usage: %s [-b pmbr] [-g gptboot] [-i index ] [-s count] device ...\n",
getprogname());
exit(1);
}
@@ -166,7 +165,7 @@ boot(int fd)
return 1;
}
if (nbytes != sizeof(mbr->mbr_code)) {
- warnx("short read of PMBR boot loader code (%ld/%ld bytes)",
+ warnx("short read of PMBR boot loader code (%zd/%zd bytes)",
nbytes, sizeof(mbr->mbr_code));
// not returning, this is usually okay.
}
« no previous file with comments | « no previous file | gpt.8 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698