From 1616e02595f4496747bec5a68ae5042d6460323a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 14 Apr 2014 08:59:17 -0600 Subject: [PATCH] Fix missing sign conversion in ignore_error_type() Signed-off-by: Jens Axboe --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index 9096a322..50af7b49 100644 --- a/options.c +++ b/options.c @@ -269,7 +269,7 @@ static int ignore_error_type(struct thread_data *td, int etype, char *str) } else { error[i] = atoi(fname); if (error[i] < 0) - error[i] = error[i]; + error[i] = -error[i]; } if (!error[i]) { log_err("Unknown error %s, please use number value \n", -- 2.25.1