From: krw Date: Sun, 13 Jun 2021 13:24:45 +0000 (+0000) Subject: Fix lba_start >= lba_end debug message. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=45d66dc9b1b389f60549a9ef4a075ff4fe1f576c;p=openbsd Fix lba_start >= lba_end debug message. --- 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); }