projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3ed673c
)
use ARRAY_SIZE() for ignore_error_nr[etype]
author
Tomohiro Kusumi
<tkusumi@tuxera.com>
Wed, 7 Jun 2017 20:18:48 +0000
(23:18 +0300)
committer
Jens Axboe
<axboe@fb.com>
Wed, 7 Jun 2017 20:23:26 +0000
(14:23 -0600)
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
td_error.c
patch
|
blob
|
blame
|
history
diff --git
a/td_error.c
b/td_error.c
index 903f9ea5163e95854043b942889d10f6185aa198..9d58a31471d03f3f7db70fb6660432750f5c882c 100644
(file)
--- 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)))