libfdisk: (dos) fix N-1 error for partition size

Signed-off-by: Karel Zak <kzak@redhat.com>
tests: update fdisk formatting

fdisk --list does no more use extra linebreak (\n) before
and after partition table entries.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (gpt) fix N-1 error for partition size

The same bug like on dos.c, the limits for the "last sector" dialog
are already with "-1".

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: cleanup context devname usage

Signed-off-by: Karel Zak <kzak@redhat.com>
tests: update fdisk formatting

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (dos) set partition start/size only when requested
tests: update bsd test

Signed-off-by: Karel Zak <kzak@redhat.com>