Home | History | Annotate | Download | only in disklabel
History log of /src/sbin/disklabel/printlabel.c
RevisionDateAuthorComments
 1.16  06-Jan-2011  apb 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.
 1.15  18-Jan-2009  apb 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.
 1.14  27-Aug-2005  uwe Oops, brain fart. PRIu32 should be "u", not "d".
 1.13  27-Aug-2005  uwe 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 :).
 1.12  12-Jun-2005  dyoung 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/.
 1.11  28-Feb-2004  dsl Print everything unsigned - helps a bit for disks with [2^31..2^32) sectors.
 1.10  29-Dec-2003  jdc If a partition is adjusted so that it falls off the end of the disk, display
a '+' character (aka the '*').

OK'ed by Christos.
 1.9  20-Oct-2003  pooka 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.
 1.8  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.7  04-Aug-2003  dsl Make output fit into 80 columns when a partition doesn't end on a cylinder
boundary.
 1.6  01-Jul-2003  simonb Line up the cylinder numbers in the printlabel output a bit better.
 1.5  28-Sep-2002  dbj add FS_APPLEUFS
part of PR #17345
 1.4  27-May-2002  drochner display / read the p_cdsession field in the FS_ISO9660 case
 1.3  19-Oct-2001  lukem minor WARNS=2 stuff
 1.2  26-May-2001  christos - 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.
 1.1  24-Dec-2000  lukem branches: 1.1.2;
move showinfo() and showpartition() into separate file, for use by
other programs. slightly change argument signature so that globals
aren't depended upon.
 1.1.2.2  26-Feb-2001  he Pull up revision 1.1 (new, requested by lukem):
Several fixes and enhancements:
o with ``-I'', initialize the label if it's not there, it's
corrupt, or there's no ``fake'' label.
o correct partition table header
o move some functions into a separate file for other programs
to use
o fix examples and cross references
o various cleanups
 1.1.2.1  24-Dec-2000  he file printlabel.c was added on branch netbsd-1-5 on 2001-02-26 22:25:44 +0000

RSS XML Feed