projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 3.1.0
[debian/amanda]
/
changer-src
/
scsi-hpux.c
diff --git
a/changer-src/scsi-hpux.c
b/changer-src/scsi-hpux.c
index 56179b19b58ad69c57b2569c01105f3149c2058f..1d379a88b478465628f9d3350e2690e2155fce40 100644
(file)
--- a/
changer-src/scsi-hpux.c
+++ b/
changer-src/scsi-hpux.c
@@
-38,7
+38,6
@@
#include "amanda.h"
#include "amanda.h"
-#if defined(HAVE_HPUX_SCSI_CHIO)
# include <sys/scsi.h>
# include <sys/mtio.h> /* for eject_tape ioctls */
# include <sys/scsi.h>
# include <sys/mtio.h> /* for eject_tape ioctls */
@@
-157,7
+156,7
@@
int rc;
rc = ioctl(fd, SIOC_ELEMENT_STATUS, &es);
if (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);
}
get_pname(), rc, strerror(errno));
return(-1);
}
@@
-183,7
+182,7
@@
int i, rc;
&& !rc && es.full);
if (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;
}
get_pname(), rc, strerror(errno));
return -1;
}
@@
-204,7
+203,7
@@
int i,rc;
rc = ioctl(fd, SIOC_ELEMENT_STATUS, &es);
if (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);
}
get_pname(), rc, strerror(errno));
return(-1);
}
@@
-234,7
+233,7
@@
int rc;
rc = ioctl(fd, SIOC_MOVE_MEDIUM, &move);
if (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);
}
get_pname(), rc, strerror(errno));
return(-2);
}
@@
-264,7
+263,7
@@
int rc;
rc = ioctl(fd, SIOC_MOVE_MEDIUM,&move);
if (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);
}
get_pname(), rc, strerror(errno));
return(-2);
}
@@
-277,7
+276,7
@@
int rc;
rc = get_changer_info(fd);
if (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;
}
rc, strerror(errno));
return -1;
}
@@
-292,7
+291,7
@@
int get_drive_count(int fd)
rc = get_changer_info(fd);
if (rc) {
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;
}
rc, strerror(errno));
return -1;
}
@@
-326,7
+325,7
@@
int OpenDevice(char * tapedev)
int DeviceFD;
DeviceFD = open(tapedev, O_RDWR);
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);
}
return(DeviceFD);
}
@@
-335,8
+334,6
@@
int CloseDevice(char *device, int DeviceFD)
int ret;
ret = close(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);
}
return(ret);
}
-
-#endif