int i;
fputc('\n', stderr);
fprintf(stderr, _("Usage:\n"));
- fprintf(stderr, " %s -V\n", progname);
+ fprintf(stderr, _(" %s -V\n"), progname);
fprintf(stderr, _(" %s --report [devices]\n"), progname);
fprintf(stderr, _(" %s [-v|-q] commands devices\n"), progname);
fputc('\n', stderr);
/* -V not together with commands */
if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) {
- printf("%s (%s)\n", progname, PACKAGE_STRING);
+ printf(_("%s (%s)\n"), progname, PACKAGE_STRING);
exit(0);
}
static void
usage(void) {
- fprintf(stderr, "%s (%s)\n", program_name, PACKAGE_STRING);
+ fprintf(stderr, _("%s (%s)\n"), program_name, PACKAGE_STRING);
fprintf(stderr,
_("Usage: %s [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n"),
program_name);
fd_pidfile = open(pidfile_path, O_CREAT | O_RDWR, 0664);
if (fd_pidfile < 0) {
if (!quiet)
- fprintf(stderr, "Failed to open/create %s: %s\n",
+ fprintf(stderr, _("Failed to open/create %s: %s\n"),
pidfile_path, strerror(errno));
exit(1);
}
if ((errno == EAGAIN) || (errno == EINTR))
continue;
if (!quiet)
- fprintf(stderr, "Failed to lock %s: %s\n",
+ fprintf(stderr, _("Failed to lock %s: %s\n"),
pidfile_path, strerror(errno));
exit(1);
}
printf(_("operation %d, incoming num = %d\n"),
op, num);
} else if (debug)
- printf("operation %d\n", op);
+ printf(_("operation %d\n"), op);
switch(op) {
case UUIDD_OP_GETPID:
unsigned long long swapsize =
swap_get_size(hdr, special, pagesize);
if (verbose)
- warnx("%s: pagesize=%d, swapsize=%llu, devsize=%llu",
+ warnx(_("%s: pagesize=%d, swapsize=%llu, devsize=%llu"),
special, pagesize, swapsize, devsize);
if (swapsize > devsize) {
++verbose;
break;
case 'V': /* version */
- printf("%s: (%s)\n", progname, PACKAGE_STRING);
+ printf(_("%s (%s)\n"), progname, PACKAGE_STRING);
exit(0);
case 0:
break;
++verbose;
break;
case 'V': /* version */
- printf("%s (%s)\n", progname, PACKAGE_STRING);
+ printf(_("%s (%s)\n"), progname, PACKAGE_STRING);
exit(0);
case 'L':
addl(optarg);
char buf[512];
int i;
- print_s("Architecture:", desc->arch);
+ print_s(_("Architecture:"), desc->arch);
if (desc->mode & (MODE_REAL | MODE_TRANSPARENT | MODE_LONG)) {
char buf[64], *p = buf;
static void
print_version(char *progname) {
- printf("%s (%s)\n", progname, PACKAGE_STRING);
+ printf(_("%s (%s)\n"), progname, PACKAGE_STRING);
}
static void *
status = 0xdeadbeef;
retval = ioctl(fd, LPGETSTATUS - offset, &status);
if (retval < 0)
- perror("LPGETSTATUS error");
+ perror(_("LPGETSTATUS error"));
else {
if (status == 0xdeadbeef) /* a few 1.1.7x kernels will do this */
status = retval;
} else
#endif /* LPGETSTATUS */
if (ioctl(fd, cmds->op - offset, cmds->val) < 0) {
- perror("tunelp: ioctl");
+ perror(_("tunelp: ioctl failed"));
}
cmdst = cmds;
cmds = cmds->next;