aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Fu <vincent.fu@samsung.com>2024-04-04 16:46:21 +0000
committerVincent Fu <vincent.fu@samsung.com>2024-04-24 13:44:09 -0400
commit33f5cb572c4b5856e18ff8705fe3e9e37da9e6bf (patch)
tree786bb9d5dcaf1a82cb6461b9184ebd70441a96cd
parent3dabef7c3139835d4afada65fb3f7ac8609e42eb (diff)
downloadfio-33f5cb572c4b5856e18ff8705fe3e9e37da9e6bf.tar.gz
options: parse placement IDs as unsigned values
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.c b/options.c
index 4065b7a0e..61ea41cc4 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);