From 45d66dc9b1b389f60549a9ef4a075ff4fe1f576c Mon Sep 17 00:00:00 2001 From: krw Date: Sun, 13 Jun 2021 13:24:45 +0000 Subject: [PATCH] Fix lba_start >= lba_end debug message. --- sbin/fdisk/gpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/fdisk/gpt.c b/sbin/fdisk/gpt.c index 64b7ce3fd02..1d9a55288d2 100644 --- a/sbin/fdisk/gpt.c +++ b/sbin/fdisk/gpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpt.c,v 1.26 2021/06/12 20:16:26 krw Exp $ */ +/* $OpenBSD: gpt.c,v 1.27 2021/06/13 13:24:45 krw Exp $ */ /* * Copyright (c) 2015 Markus Muller * Copyright (c) 2015 Kenneth R Westerback @@ -120,7 +120,7 @@ get_header(off_t where) if (letoh64(gh.gh_lba_start) >= letoh64(gh.gh_lba_end)) { DPRINTF("gpt first usable LBA: expected < %llu, got %llu\n", - letoh64(gh.gh_lba_start), letoh64(gh.gh_lba_start)); + letoh64(gh.gh_lba_end), letoh64(gh.gh_lba_start)); return (1); } -- 2.20.1