From 3feb172447ac1cec1803cefb9e69ea7d4bc3d5e5 Mon Sep 17 00:00:00 2001 From: krw Date: Sat, 6 May 2023 15:07:02 +0000 Subject: [PATCH] Replace pointless %d formatting of 0 values with literal '0's. No functional change. --- sbin/disklabel/disklabel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index b43b3caa3f1..7d7e4396b87 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.247 2023/01/04 21:08:08 krw Exp $ */ +/* $OpenBSD: disklabel.c,v 1.248 2023/05/06 15:07:02 krw Exp $ */ /* * Copyright (c) 1987, 1993 @@ -1038,19 +1038,19 @@ checklabel(struct disklabel *lp) char part; if (lp->d_secsize == 0) { - warnx("sector size %d", lp->d_secsize); + warnx("sector size 0"); return (1); } if (lp->d_nsectors == 0) { - warnx("sectors/track %d", lp->d_nsectors); + warnx("sectors/track 0"); return (1); } if (lp->d_ntracks == 0) { - warnx("tracks/cylinder %d", lp->d_ntracks); + warnx("tracks/cylinder 0"); return (1); } if (lp->d_ncylinders == 0) { - warnx("cylinders/unit %d", lp->d_ncylinders); + warnx("cylinders/unit 0"); errors++; } if (lp->d_secpercyl == 0) -- 2.20.1