apb
63df928b37
Change printf formats to match the data type of the values being
...
printed. There's now a lot of PRIu16 and PRIu32, some PRIu8, some
SCNu32, and a few cases where %u and %d were reversed. Multiplication
of 32-bit and 8-bit values is cast to uint64_t and printed with PRIu64.
Inspired by a report from Patrick Welche on current-users.
2011-01-06 21:39:01 +00:00
apb
44f43cf298
Remove local definitions of PRIxxxx macros in favour of the
...
centralised definitions from tools/compat/compat_defs.h, which
are included via nbtool_config.h.
2009-01-18 21:15:14 +00:00
uwe
066571f357
Oops, brain fart. PRIu32 should be "u", not "d".
2005-08-27 23:34:52 +00:00
uwe
d42d0f4fb3
Define PRIu32 in host environments that don't have it defined.
...
Define it to "d", as we are unlikely to support hosts where int is
smaller than 32 bits anyway :).
2005-08-27 22:38:02 +00:00
dyoung
1726c417de
Make disklabel(8) into a host-tool, "nbdisklabel." Move disklabel.c
...
to main.c to avoid a name collision with lib/libc/gen/disklabel.c
when we build nbdisklabel. Still todo: commit host-tool build
infrastructure to src/tools/disklabel/.
2005-06-12 19:18:34 +00:00
dsl
7d06c8be4a
Print everything unsigned - helps a bit for disks with [2^31..2^32) sectors.
2004-02-28 18:19:00 +00:00
jdc
dbc3f17967
If a partition is adjusted so that it falls off the end of the disk, display
...
a '+' character (aka the '*').
OK'ed by Christos.
2003-12-29 19:13:19 +00:00
pooka
84a1b52c43
Partition size and offset inside the disklabel are unsigned. Print
...
them as unsigned so that we don't print negative values when we're
halfway through.
2003-10-20 13:10:48 +00:00
agc
bf07c8719a
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:11 +00:00
dsl
42c39f4f19
Make output fit into 80 columns when a partition doesn't end on a cylinder
...
boundary.
2003-08-04 17:14:50 +00:00
simonb
775170c02f
Line up the cylinder numbers in the printlabel output a bit better.
2003-07-01 05:40:54 +00:00
dbj
a323eac318
add FS_APPLEUFS
...
part of PR #17345
2002-09-28 00:47:24 +00:00
drochner
ec943f317b
display / read the p_cdsession field in the FS_ISO9660 case
2002-05-27 17:33:08 +00:00
lukem
8064490359
minor WARNS=2 stuff
2001-10-19 01:16:37 +00:00
christos
7956951247
- KNF printlabel.c
...
- add a function to print only one partition's info.
- print the partition information if it was modified in interactive mode.
- improve on the chaining code. [still assumes that partition offsets increase
monotonically]. We could check for overlap too.
2001-05-26 19:48:32 +00:00
lukem
1c5cb88e30
move showinfo() and showpartition() into separate file, for use by
...
other programs. slightly change argument signature so that globals
aren't depended upon.
2000-12-24 07:08:02 +00:00