[systemd-devel] [PATCH] core: use correct format string for UIDs

Michał Bartoszkiewicz mbartoszkiewicz at gmail.com
Wed Jun 25 05:54:48 PDT 2014


---
 src/core/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/main.c b/src/core/main.c
index 6981e72..8ee12ef 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1548,7 +1548,7 @@ int main(int argc, char *argv[]) {
                         log_info("Running with unpopulated /etc.");
         } else {
                 _cleanup_free_ char *t = uid_to_name(getuid());
-                log_debug(PACKAGE_STRING " running in user mode for user "PID_FMT"/%s. (" SYSTEMD_FEATURES ")",
+                log_debug(PACKAGE_STRING " running in user mode for user "UID_FMT"/%s. (" SYSTEMD_FEATURES ")",
                           getuid(), t);
         }
 
-- 
2.0.0



More information about the systemd-devel mailing list