]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: ptable_print() needs two tabs sometimes
authortsoome <tsoome@FreeBSD.org>
Thu, 9 May 2019 11:04:10 +0000 (11:04 +0000)
committertsoome <tsoome@FreeBSD.org>
Thu, 9 May 2019 11:04:10 +0000 (11:04 +0000)
commitc3e96d5122b044e561f08342a160cbb5d6e214d1
tree86b78517a3b87bc0ac5b912d4d215bba721326d3
parent5ec7dd993f952bac731fe98b3c785e2bb362335a
loader: ptable_print() needs two tabs sometimes

Since the partition/slice names do vary in length, check the length
of the fixed part of the line against 3 * 8, if the lenth is less than
3 tab stops, print out extra tab.

use snprintf() instead of sprintf.
stand/common/disk.c