diff --git a/src/lxc/string_utils.h b/src/lxc/string_utils.h index a31733c18f..bc3e3992a9 100644 --- a/src/lxc/string_utils.h +++ b/src/lxc/string_utils.h @@ -173,7 +173,7 @@ static inline const char *fdstr(__s64 fd) static const char *fdstr_invalid = "-EBADF"; static char buf[INTTYPE_TO_STRLEN(__s64)]; - if (strnprintf(buf, sizeof(buf), "%lld", fd) < 0) + if (strnprintf(buf, sizeof(buf), "%lld", (long long signed int)fd) < 0) return fdstr_invalid; return buf;