From: Vincent Fu Date: Thu, 4 Apr 2024 16:46:21 +0000 (+0000) Subject: options: parse placement IDs as unsigned values X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=33f5cb572c4b5856e18ff8705fe3e9e37da9e6bf;p=fio.git options: parse placement IDs as unsigned values Signed-off-by: Vincent Fu --- diff --git a/options.c b/options.c index 4065b7a0..61ea41cc 100644 --- a/options.c +++ b/options.c @@ -271,7 +271,7 @@ static int str_fdp_pli_cb(void *data, const char *input) strip_blank_end(str); while ((v = strsep(&str, ",")) != NULL && i < FIO_MAX_DP_IDS) { - unsigned long long id = strtoll(v, NULL, 0); + unsigned long long id = strtoull(v, NULL, 0); if (id > 0xFFFF) { log_err("Placement IDs cannot exceed 0xFFFF\n"); free(p);