From: Lucas Gabriel Vuotto Subject: fdisk: use a tab after Disk: for GPT To: tech@openbsd.org Date: Fri, 23 May 2025 04:45:56 +0000 Spotted while writing regress. I adjusted the manpage accordingly. OK? Lucas diff refs/heads/master 824f861bd7959384d50d9874b368acbab643433a commit - 1eb5aefcb9b7f5d4b12c7366f00ae94681953f51 commit + 824f861bd7959384d50d9874b368acbab643433a blob - ee1a9a48e68ddf0ce27d47495a7ac5089f6c69ad blob + 99aeba3c1733d9252414046c4cce1dab64c5468c --- sbin/fdisk/fdisk.8 +++ sbin/fdisk/fdisk.8 @@ -176,7 +176,7 @@ If has a GPT a terse version of its contents is printed: .Bd -literal -offset 1n # fdisk sd0 -Disk: sd0 Usable LBA: 64 to 500118128 [500118192 Sectors] +Disk: sd0 Usable LBA: 64 to 500118128 [500118192 Sectors] #: type [ start: size ] ------------------------------------------------------------------------ 1: EFI Sys [ 64: 960 ] @@ -190,8 +190,8 @@ does not have a GPT, the first block of is printed as an MBR: .Bd -literal -offset 1n # fdisk sd0 -Disk: sd0 geometry: 121601/255/63 [1953525168 Sectors] -Offset: 0 Signature: 0xAA55 +Disk: sd0 geometry: 121601/255/63 [1953525168 Sectors] +Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------ @@ -218,7 +218,7 @@ option causes more information to be printed: .Bd -literal -offset 1n # fdisk -v sd0 Primary GPT: -Disk: sd0 Usable LBA: 64 to 500118128 [500118192 Sectors] +Disk: sd0 Usable LBA: 64 to 500118128 [500118192 Sectors] GUID: f0418899-4976-4604-a783-3ebe135a8f12 #: type [ start: size ] guid name @@ -229,7 +229,7 @@ GUID: f0418899-4976-4604-a783-3ebe135a8f12 cd356d77-8369-44b4-996e-79e8b9a47bfe OpenBSD Area Secondary GPT: -Disk: sd0 Usable LBA: 64 to 500118128 [500118192 Sectors] +Disk: sd0 Usable LBA: 64 to 500118128 [500118192 Sectors] GUID: f0418899-4976-4604-a783-3ebe135a8f12 #: type [ start: size ] guid name @@ -240,8 +240,8 @@ GUID: f0418899-4976-4604-a783-3ebe135a8f12 cd356d77-8369-44b4-996e-79e8b9a47bfe OpenBSD Area MBR: -Disk: sd0 geometry: 31130/255/63 [500118192 Sectors] -Offset: 0 Signature: 0xAA55 +Disk: sd0 geometry: 31130/255/63 [500118192 Sectors] +Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- blob - 41f87e8cf584d0808e4deba6123e0645ff461d30 blob + 274a81f22347b87da9eaf952dd6cbdb9c5a24e99 --- sbin/fdisk/gpt.c +++ sbin/fdisk/gpt.c @@ -396,7 +396,7 @@ GPT_print(const char *units, const int verbosity) #endif /* DEBUG */ size = units_size(units, DL_GETDSIZE(&dl), &ut); - printf("Disk: %s Usable LBA: %llu to %llu [%.0f ", + printf("Disk: %s\tUsable LBA: %llu to %llu [%.0f ", disk.dk_name, gh.gh_lba_start, gh.gh_lba_end, size); if (ut->ut_conversion == 0 && secsize != DEV_BSIZE) printf("%d-byte ", secsize);