From db754501661825ef9ee4db84a3203b3b40cf95a0 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Wed, 20 Jan 2010 18:22:56 +0000 Subject: [PATCH] Give the right value when complaining it being wrong. Reported by: danfe MFC after: 3 days --- usr.sbin/burncd/burncd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c index 2931cf819bc3..43a0a09f1cbd 100644 --- a/usr.sbin/burncd/burncd.c +++ b/usr.sbin/burncd/burncd.c @@ -151,7 +151,7 @@ main(int argc, char **argv) else speed = atoi(env_speed) * 177; if (speed <= 0) - errx(EX_USAGE, "Invalid speed: %s", optarg); + errx(EX_USAGE, "Invalid speed: %s", env_speed); if (argc == 0) usage();