summaryrefslogtreecommitdiff
path: root/sbin/disklabel/disklabel.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-30 07:09:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-30 07:09:38 +0000
commitd2f034ed849e77478b80582a607ff525e7abb7f9 (patch)
treec37d51fb21599d935298227cf26ae482ab670246 /sbin/disklabel/disklabel.c
parent3dbf6df7f07293d9f6f6152fd700eebb10899094 (diff)
Better header at the top:
# Inside MBR partition 3: type A6 start 2570463 size 75569697
Diffstat (limited to 'sbin/disklabel/disklabel.c')
-rw-r--r--sbin/disklabel/disklabel.c31
1 files changed, 14 insertions, 17 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 30a5b7b6425..1d07a59027f 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.94 2005/01/07 21:58:14 otto Exp $ */
+/* $OpenBSD: disklabel.c,v 1.95 2005/04/30 07:09:37 deraadt Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -39,7 +39,7 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
-static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.94 2005/01/07 21:58:14 otto Exp $";
+static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.95 2005/04/30 07:09:37 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -616,31 +616,28 @@ readmbr(int f)
/* Find OpenBSD partition. */
for (part = 0; part < NDOSPART; part++) {
if (get_le(&dp[part].dp_size) && dp[part].dp_typ == DOSPTYP_OPENBSD) {
- fprintf(stderr, "# using MBR partition %d: "
- "type %02X off %u (0x%x) size %u (0x%x)\n", part,
- dp[part].dp_typ,
- get_le(&dp[part].dp_start), get_le(&dp[part].dp_start),
- get_le(&dp[part].dp_size), get_le(&dp[part].dp_size));
+ fprintf(stderr, "# Inside MBR partition %d: "
+ "type %02X start %u size %u\n",
+ part, dp[part].dp_typ,
+ get_le(&dp[part].dp_start), get_le(&dp[part].dp_size));
return (&dp[part]);
}
}
for (part = 0; part < NDOSPART; part++) {
if (get_le(&dp[part].dp_size) && dp[part].dp_typ == DOSPTYP_FREEBSD) {
- fprintf(stderr, "# using MBR partition %d: "
- "type %02X off %u (0x%x) size %u (0x%x)\n", part,
- dp[part].dp_typ,
- get_le(&dp[part].dp_start), get_le(&dp[part].dp_start),
- get_le(&dp[part].dp_size), get_le(&dp[part].dp_size));
+ fprintf(stderr, "# Inside MBR partition %d: "
+ "type %02X start %u size %u\n",
+ part, dp[part].dp_typ,
+ get_le(&dp[part].dp_start), get_le(&dp[part].dp_size));
return (&dp[part]);
}
}
for (part = 0; part < NDOSPART; part++) {
if (get_le(&dp[part].dp_size) && dp[part].dp_typ == DOSPTYP_NETBSD) {
- fprintf(stderr, "# using MBR partition %d: "
- "type %02X off %u (0x%x) size %u (0x%x)\n", part,
- dp[part].dp_typ,
- get_le(&dp[part].dp_start), get_le(&dp[part].dp_start),
- get_le(&dp[part].dp_size), get_le(&dp[part].dp_size));
+ fprintf(stderr, "# Inside MBR partition %d: "
+ "type %02X start %u size %u\n",
+ part, dp[part].dp_typ,
+ get_le(&dp[part].dp_start), get_le(&dp[part].dp_size));
return (&dp[part]);
}
}