X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=changer-src%2Fscsi-hpux.c;h=1d379a88b478465628f9d3350e2690e2155fce40;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=56179b19b58ad69c57b2569c01105f3149c2058f;hpb=12179dea039515c06168c0037d048566a3f623de;p=debian%2Famanda diff --git a/changer-src/scsi-hpux.c b/changer-src/scsi-hpux.c index 56179b1..1d379a8 100644 --- a/changer-src/scsi-hpux.c +++ b/changer-src/scsi-hpux.c @@ -38,7 +38,6 @@ #include "amanda.h" -#if defined(HAVE_HPUX_SCSI_CHIO) # include # include /* for eject_tape ioctls */ @@ -157,7 +156,7 @@ int rc; rc = ioctl(fd, SIOC_ELEMENT_STATUS, &es); if (rc) { - fprintf(stderr, "%s: element status query failed: 0x%x %s\n", + g_fprintf(stderr, _("%s: element status query failed: 0x%x %s\n"), get_pname(), rc, strerror(errno)); return(-1); } @@ -183,7 +182,7 @@ int i, rc; && !rc && es.full); if (rc) { - fprintf(stderr,"%s: element status query failed: 0x%x %s\n", + g_fprintf(stderr,_("%s: element status query failed: 0x%x %s\n"), get_pname(), rc, strerror(errno)); return -1; } @@ -204,7 +203,7 @@ int i,rc; rc = ioctl(fd, SIOC_ELEMENT_STATUS, &es); if (rc) { - fprintf(stderr,"%s: drive status quer failed: 0x%x %s\n", + g_fprintf(stderr,_("%s: drive status quer failed: 0x%x %s\n"), get_pname(), rc, strerror(errno)); return(-1); } @@ -234,7 +233,7 @@ int rc; rc = ioctl(fd, SIOC_MOVE_MEDIUM, &move); if (rc){ - fprintf(stderr,"%s: move medium command failed: 0x%x %s\n", + g_fprintf(stderr,_("%s: move medium command failed: 0x%x %s\n"), get_pname(), rc, strerror(errno)); return(-2); } @@ -264,7 +263,7 @@ int rc; rc = ioctl(fd, SIOC_MOVE_MEDIUM,&move); if (rc){ - fprintf(stderr,"%s: drive load failed (MOVE): 0x%x %s\n", + g_fprintf(stderr,_("%s: drive load failed (MOVE): 0x%x %s\n"), get_pname(), rc, strerror(errno)); return(-2); } @@ -277,7 +276,7 @@ int rc; rc = get_changer_info(fd); if (rc) { - fprintf(stderr, "%s: storage size query failed: 0x%x %s\n", get_pname(), + g_fprintf(stderr, _("%s: storage size query failed: 0x%x %s\n"), get_pname(), rc, strerror(errno)); return -1; } @@ -292,7 +291,7 @@ int get_drive_count(int fd) rc = get_changer_info(fd); if (rc) { - fprintf(stderr, "%s: drive count query failed: 0x%x %s\n", get_pname(), + g_fprintf(stderr, _("%s: drive count query failed: 0x%x %s\n"), get_pname(), rc, strerror(errno)); return -1; } @@ -326,7 +325,7 @@ int OpenDevice(char * tapedev) int DeviceFD; DeviceFD = open(tapedev, O_RDWR); - dbprintf(("%s: OpenDevice(%s) returns %d\n", get_pname(), tapedev, DeviceFD)); + dbprintf(_("OpenDevice(%s) returns %d\n"), tapedev, DeviceFD); return(DeviceFD); } @@ -335,8 +334,6 @@ int CloseDevice(char *device, int DeviceFD) int ret; ret = close(DeviceFD); - dbprintf(("%s: CloseDevice(%s) returns %d\n", get_pname(), device, ret)); + dbprintf(_("CloseDevice(%s) returns %d\n"), device, ret); return(ret); } - -#endif