Fix trivial calloc argument order
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 3 Jan 2017 14:40:05 +0000 (23:40 +0900)
committerJens 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

index c1fe60200a7e4b11aade925393477283c0e95e39..001193df5970566a97b7b4634d7a15134e663a14 100644 (file)
@@ -579,7 +579,7 @@ static char *fio_sgio_errdetails(struct io_u *io_u)
        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