projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
747311b
)
Fix trivial calloc argument order
author
Tomohiro Kusumi
<tkusumi@tuxera.com>
Tue, 3 Jan 2017 14:40:05 +0000
(23:40 +0900)
committer
Jens Axboe
<axboe@fb.com>
Tue, 3 Jan 2017 17:10:58 +0000
(10:10 -0700)
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/sg.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/sg.c
b/engines/sg.c
index c1fe60200a7e4b11aade925393477283c0e95e39..001193df5970566a97b7b4634d7a15134e663a14 100644
(file)
--- a/
engines/sg.c
+++ b/
engines/sg.c
@@
-579,7
+579,7
@@
static char *fio_sgio_errdetails(struct io_u *io_u)
char *msg, msgchunk[MAXMSGCHUNK], *ret = NULL;
int i;
char *msg, msgchunk[MAXMSGCHUNK], *ret = NULL;
int i;
- msg = calloc(
MAXERRDETAIL, 1
);
+ msg = calloc(
1, MAXERRDETAIL
);
/*
* can't seem to find sg_err.h, so I'll just echo the define values
/*
* can't seem to find sg_err.h, so I'll just echo the define values