From 95cc95749a5e783f2b5d2124d783f85820baf937 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 17 May 2012 13:54:29 -0400 Subject: Always use positional arguments in translatable strings https://fedorahosted.org/sssd/ticket/1336 --- src/tools/sss_userdel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tools/sss_userdel.c') diff --git a/src/tools/sss_userdel.c b/src/tools/sss_userdel.c index 6d5e82958..0d1c63e4c 100644 --- a/src/tools/sss_userdel.c +++ b/src/tools/sss_userdel.c @@ -227,7 +227,7 @@ int main(int argc, const char **argv) if ((tctx->octx->uid < tctx->local->id_min) || (tctx->local->id_max && tctx->octx->uid > tctx->local->id_max)) { - ERROR("User %s is outside the defined ID range for domain\n", + ERROR("User %1$s is outside the defined ID range for domain\n", tctx->octx->name); ret = EXIT_FAILURE; goto fini; @@ -264,7 +264,7 @@ int main(int argc, const char **argv) break; case EOK: - ERROR("WARNING: The user (uid %lu) was still logged in when " + ERROR("WARNING: The user (uid %1$lu) was still logged in when " "deleted.\n", (unsigned long) tctx->octx->uid); break; @@ -281,7 +281,7 @@ int main(int argc, const char **argv) ret = run_userdel_cmd(tctx); if (ret != EOK) { - ERROR("The post-delete command failed: %s\n", strerror(ret)); + ERROR("The post-delete command failed: %1$s\n", strerror(ret)); goto fini; } @@ -295,7 +295,7 @@ int main(int argc, const char **argv) if (ret == EPERM) { ERROR("Not removing home dir - not owned by user\n"); } else if (ret != EOK) { - ERROR("Cannot remove homedir: %s\n", strerror(ret)); + ERROR("Cannot remove homedir: %1$s\n", strerror(ret)); ret = EXIT_FAILURE; goto fini; } -- cgit