From 33f5cb572c4b5856e18ff8705fe3e9e37da9e6bf Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Thu, 4 Apr 2024 16:46:21 +0000 Subject: [PATCH] options: parse placement IDs as unsigned values Signed-off-by: Vincent Fu --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1