From 9b5c4600e6788a25f5f390405157e17ed4652f63 Mon Sep 17 00:00:00 2001 From: krw Date: Sun, 19 Dec 2021 19:26:18 +0000 Subject: [PATCH] Simplify error message emitted when requested partition size cannot be accommodated. "not enough space" should be enough for anyone. Requested by deraadt@ --- sbin/disklabel/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 8f7117805b7..b43f10f340f 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.369 2021/11/09 16:53:18 otto Exp $ */ +/* $OpenBSD: editor.c,v 1.370 2021/12/19 19:26:18 krw Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller @@ -2535,7 +2535,7 @@ alignpartition(struct disklabel *lp, int partno, u_int64_t startalign, stop = maxstop; if (stop <= start) { - fprintf(stderr, "'%c' aligned size <= 0\n", 'a' + partno); + fprintf(stderr, "not enough space\n"); return (1); } -- 2.20.1