N_() only marks a string for translation extraction but does not
translate at runtime. Use _() to ensure the error messages are
actually translated when displayed.
Signed-off-by: Karel Zak <kzak@redhat.com>
rc = statx(pidfd, "", AT_EMPTY_PATH, STATX_INO, &stx);
if (rc < 0) {
close(pidfd);
- err(EXIT_FAILURE, N_("failed to statx() pidfd"));
+ err(EXIT_FAILURE, _("failed to statx() pidfd"));
}
return stx.stx_ino;
}
pfd = ul_get_valid_pidfd(pid, pidfd_ino);
if (pfd < 0)
- err(EXIT_FAILURE, N_("failed to obtain a valid file descriptor for PID %d"), pid);
+ err(EXIT_FAILURE, _("failed to obtain a valid file descriptor for PID %d"), pid);
return pfd;
}
void ul_parse_pid_str_or_err(char *pidstr, pid_t *pid_num, uint64_t *pfd_ino, int flags)
{
if (ul_parse_pid_str(pidstr, pid_num, pfd_ino, flags) < 0) {
- err(EXIT_FAILURE, N_("failed to parse PID argument '%s'"), pidstr);
+ err(EXIT_FAILURE, _("failed to parse PID argument '%s'"), pidstr);
}
}