From: Yunhee Seo Date: Wed, 5 Jun 2024 01:20:51 +0000 (+0900) Subject: libsystemd: Fix wrong dlog message format X-Git-Tag: accepted/tizen/unified/20240618.060027~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b83b246edf3fd765f746c142f8ac2eadac51a5f8;p=platform%2Fcore%2Fsystem%2Flibsyscommon.git libsystemd: Fix wrong dlog message format When applying dlog to libsyscommon, build error occurs due to incorrect formatting. To avoid build error, fix wrong message format is necessary. Change-Id: Ib73e55d7068e4a810dedb5d59a7a78e79fdba3cc Signed-off-by: Yunhee Seo --- diff --git a/src/libsystemd/libsystemd.c b/src/libsystemd/libsystemd.c index 0e9725b..115bcd5 100644 --- a/src/libsystemd/libsystemd.c +++ b/src/libsystemd/libsystemd.c @@ -249,7 +249,7 @@ static int _change_suffix(const char *name, /* check max len */ if ((len + strlen(suffix)) >= UNIT_NAME_MAX) { - _E("Name is too long:%d", (len + strlen(suffix))); + _E("Name is too long:%ld", (len + strlen(suffix))); return -ENAMETOOLONG; } @@ -325,7 +325,7 @@ static int _systemd_control_unit(const char *name, name = new_name; } else { if (strlen(name) > UNIT_NAME_MAX) { - _E("Invalid name length %d(>%d)", strlen(name), UNIT_NAME_MAX); + _E("Invalid name length %ld(>%d)", strlen(name), UNIT_NAME_MAX); return -EINVAL; } }