File smp_utils-compile-fixes of Package smp_utils
Index: smp_utils-0.93/sas_tpl/smp_portal_intf.c
===================================================================
--- smp_utils-0.93.orig/sas_tpl/smp_portal_intf.c
+++ smp_utils-0.93/sas_tpl/smp_portal_intf.c
@@ -81,9 +81,9 @@ int chk_smp_portal_file(const char * smp
res = 1; /* this is indeed SAS stack's smp portal */
} else {
if (verbose > 2) {
- fprintf(stderr, "chk_smp_portal_file: read %d bytes "
- "(errno=%d)\n", ((res < 0) ? 0 : res),
- ((res < 0) ? errno : 0));
+ fprintf(stderr, "chk_smp_portal_file: read %ld bytes "
+ "(errno=%ld)\n", ((res < 0) ? 0 : res),
+ ((res < 0) ? (long)errno : 0));
}
res = 0;
}
Index: smp_utils-0.93/sgv4/smp_sgv4_io.c
===================================================================
--- smp_utils-0.93.orig/sgv4/smp_sgv4_io.c
+++ smp_utils-0.93/sgv4/smp_sgv4_io.c
@@ -32,8 +32,8 @@ chk_sgv4_device(const char * dev_name, i
int len;
if (strlen(dev_name) > sizeof(buff)) {
- fprintf(stderr, "device name too long (greater than %d bytes)\n",
- sizeof(buff));
+ fprintf(stderr, "device name too long (greater than %lu bytes)\n",
+ sizeof(buff));
return 0;
}
len = 0;
@@ -88,7 +88,7 @@ open_sgv4_device(const char * dev_name,
struct timeval t;
if (strlen(dev_name) > sizeof(buff)) {
- fprintf(stderr, "device name too long (greater than %d bytes)\n",
+ fprintf(stderr, "device name too long (greater than %lu bytes)\n",
sizeof(buff));
return 0;
}