chiark / gitweb /
Assorted format fixes
[elogind.git] / src / shared / install-printf.c
index 1ee1243f4d191c63e0acda1be7c06682db04efc3..d853f17772332568efd15bec973346868530422d 100644 (file)
@@ -103,7 +103,7 @@ static int specifier_user_name(char specifier, void *data, void *userdata, char
                 if (r < 0)
                         return r;
 
-                if (asprintf(&printed, "%d", uid) < 0)
+                if (asprintf(&printed, UID_FMT, uid) < 0)
                         return -ENOMEM;
                 break;
         }}