Skip to content

Commit 2caa59a

Browse files
committed
core-parse-opts: remove extraneous space in error message
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
1 parent 8661ef9 commit 2caa59a

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

core-parse-opts.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ int8_t stress_get_int8(const char *const str)
198198
stress_no_return();
199199
}
200200
if (val > INT8_MAX) {
201-
(void)fprintf(stderr, "invalid value %s too large (> %ld)\n", str, (long)INT8_MAX);
201+
(void)fprintf(stderr, "invalid value %s too large (> %ld)\n", str, (long)INT8_MAX);
202202
longjmp(g_error_env, 1);
203203
stress_no_return();
204204
}
205205
if (val < INT8_MIN) {
206-
(void)fprintf(stderr, "invalid value %s too small (< %ld)\n", str, (long)INT8_MIN);
206+
(void)fprintf(stderr, "invalid value %s too small (< %ld)\n", str, (long)INT8_MIN);
207207
longjmp(g_error_env, 1);
208208
stress_no_return();
209209
}
@@ -222,7 +222,7 @@ uint16_t stress_get_uint16(const char *const str)
222222
stress_ensure_numeric(str);
223223
errno = 0;
224224
if ((sscanf(str, "%" SCNu64, &val) != 1) || (errno != 0)) {
225-
(void)fprintf(stderr, "invalid value %s\n", str);
225+
(void)fprintf(stderr, "invalid value %s\n", str);
226226
longjmp(g_error_env, 1);
227227
stress_no_return();
228228
}
@@ -255,7 +255,7 @@ int16_t stress_get_int16(const char *const str)
255255
stress_no_return();
256256
}
257257
if (val < INT16_MIN) {
258-
(void)fprintf(stderr, "invalid value %s too small (< %ld)\n", str, (long)INT16_MIN);
258+
(void)fprintf(stderr, "invalid value %s too small (< %ld)\n", str, (long)INT16_MIN);
259259
longjmp(g_error_env, 1);
260260
stress_no_return();
261261
}
@@ -274,7 +274,7 @@ uint32_t stress_get_uint32(const char *const str)
274274
stress_ensure_numeric(str);
275275
errno = 0;
276276
if ((sscanf(str, "%" SCNu64, &val) != 1) || (errno != 0)) {
277-
(void)fprintf(stderr, "invalid value %s\n", str);
277+
(void)fprintf(stderr, "invalid value %s\n", str);
278278
longjmp(g_error_env, 1);
279279
stress_no_return();
280280
}
@@ -297,7 +297,7 @@ int32_t stress_get_int32(const char *const str)
297297
stress_ensure_numeric(str);
298298
errno = 0;
299299
if ((sscanf(str, "%" SCNd64, &val) != 1) || (errno != 0)) {
300-
(void)fprintf(stderr, "invalid value %s\n", str);
300+
(void)fprintf(stderr, "invalid value %s\n", str);
301301
longjmp(g_error_env, 1);
302302
stress_no_return();
303303
}
@@ -344,7 +344,7 @@ int64_t stress_get_int64(const char *const str)
344344
stress_ensure_numeric(str);
345345
errno = 0;
346346
if ((sscanf(str, "%" SCNd64, &val) != 1) || (errno != 0)) {
347-
(void)fprintf(stderr, "invalid value %s\n", str);
347+
(void)fprintf(stderr, "invalid value %s\n", str);
348348
longjmp(g_error_env, 1);
349349
stress_no_return();
350350
}
@@ -363,12 +363,12 @@ unsigned int stress_get_uint(const char *const str)
363363
stress_ensure_numeric(str);
364364
errno = 0;
365365
if ((sscanf(str, "%" SCNu64, &val) != 1) || (errno != 0)) {
366-
(void)fprintf(stderr, "invalid value %s\n", str);
366+
(void)fprintf(stderr, "invalid value %s\n", str);
367367
longjmp(g_error_env, 1);
368368
stress_no_return();
369369
}
370370
if (val > UINT_MAX) {
371-
(void)fprintf(stderr, "invalid value %s too large (> %u)\n", str, (unsigned int)UINT_MAX);
371+
(void)fprintf(stderr, "invalid value %s too large (> %u)\n", str, (unsigned int)UINT_MAX);
372372
longjmp(g_error_env, 1);
373373
stress_no_return();
374374
}
@@ -386,7 +386,7 @@ int stress_get_int(const char *const str)
386386
stress_ensure_numeric(str);
387387
errno = 0;
388388
if ((sscanf(str, "%" SCNd64, &val) != 1) || (errno != 0)) {
389-
(void)fprintf(stderr, "invalid value %s\n", str);
389+
(void)fprintf(stderr, "invalid value %s\n", str);
390390
longjmp(g_error_env, 1);
391391
stress_no_return();
392392
}
@@ -420,7 +420,7 @@ uint64_t stress_get_uint64_scale(
420420
stress_ensure_positive(str);
421421
errno = 0;
422422
if ((sscanf(str, "%" SCNu64, &val) != 1) || (errno != 0)) {
423-
(void)fprintf(stderr, "invalid value %s\n", str);
423+
(void)fprintf(stderr, "invalid value %s\n", str);
424424
goto err;
425425
}
426426

0 commit comments

Comments
 (0)