#include "amanda.h"
-#if defined(HAVE_HPUX_SCSI_CHIO)
# include <sys/scsi.h>
# include <sys/mtio.h> /* for eject_tape ioctls */
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);
}
&& !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;
}
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);
}
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);
}
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);
}
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;
}
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;
}
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);
}
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