From: DaanDeMeyer Date: Fri, 4 Jul 2025 19:21:25 +0000 (+0200) Subject: nspawn: Improve log message X-Git-Tag: v258-rc1~114^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f60ce002bce0ac155c263765ff272a4b28456cc;p=thirdparty%2Fsystemd.git nspawn: Improve log message --- diff --git a/src/nspawn/nspawn-bind-user.c b/src/nspawn/nspawn-bind-user.c index e7d976d1991..a17365d497f 100644 --- a/src/nspawn/nspawn-bind-user.c +++ b/src/nspawn/nspawn-bind-user.c @@ -269,7 +269,10 @@ int bind_user_prepare( return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Cannot bind user with no UID, refusing."); if (u->uid >= uid_shift && u->uid < uid_shift + uid_range) - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "UID of user '%s' to map is already in container UID range, refusing.", u->user_name); + return log_error_errno( + SYNTHETIC_ERRNO(EINVAL), + "UID "UID_FMT" of user '%s' to map is already in container UID range ("UID_FMT" - "UID_FMT"), refusing.", + u->uid, u->user_name, uid_shift, uid_shift + uid_range); r = groupdb_by_gid(user_record_gid(u), /* match= */ NULL, USERDB_DONT_SYNTHESIZE_INTRINSIC|USERDB_DONT_SYNTHESIZE_FOREIGN, &g); if (r < 0)