From: Tomohiro Kusumi Date: Wed, 7 Jun 2017 20:18:47 +0000 (+0300) Subject: use enum error_type_bit for ignore_error index X-Git-Tag: fio-2.21~15 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=3ed673c6a2f147f2adfbd5bb785ad79c0f4a42ed use enum error_type_bit for ignore_error index Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index 4214f245..6d799bfe 100644 --- a/options.c +++ b/options.c @@ -270,7 +270,8 @@ static int str2error(char *str) return 0; } -static int ignore_error_type(struct thread_data *td, int etype, char *str) +static int ignore_error_type(struct thread_data *td, enum error_type_bit etype, + char *str) { unsigned int i; int *error; @@ -331,7 +332,8 @@ static int str_ignore_error_cb(void *data, const char *input) { struct thread_data *td = cb_data_to_td(data); char *str, *p, *n; - int type = 0, ret = 1; + int ret = 1; + enum error_type_bit type = 0; if (parse_dryrun()) return 0; diff --git a/td_error.h b/td_error.h index 11339898..1b38a534 100644 --- a/td_error.h +++ b/td_error.h @@ -2,7 +2,8 @@ #define FIO_TD_ERROR_H /* - * What type of errors to continue on when continue_on_error is used + * What type of errors to continue on when continue_on_error is used, + * and what type of errors to ignore when ignore_error is used. */ enum error_type_bit { ERROR_TYPE_READ_BIT = 0,