From: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> Signed-off-by: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> --- td_error.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/td_error.c b/td_error.c index 903f9ea..9d58a31 100644 --- a/td_error.c +++ b/td_error.c @@ -20,8 +20,7 @@ int td_non_fatal_error(struct thread_data *td, enum error_type_bit etype, if (!td->o.ignore_error[etype]) { td->o.ignore_error[etype] = __NON_FATAL_ERR; - td->o.ignore_error_nr[etype] = sizeof(__NON_FATAL_ERR) - / sizeof(int); + td->o.ignore_error_nr[etype] = ARRAY_SIZE(__NON_FATAL_ERR); } if (!(td->o.continue_on_error & (1 << etype))) -- 2.9.4 -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html