File smp_utils-compile-fixes of Package smp_utils

Index: smp_utils-0.94/sas_tpl/smp_portal_intf.c
===================================================================
--- smp_utils-0.94.orig/sas_tpl/smp_portal_intf.c
+++ smp_utils-0.94/sas_tpl/smp_portal_intf.c
@@ -81,8 +81,8 @@ 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),
+                        fprintf(stderr, "chk_smp_portal_file: read %ld bytes "
+				"(errno=%d)\n", ((res < 0) ? 0 : (long)res),
                                 ((res < 0) ? errno : 0));
                 }
                 res = 0;
Index: smp_utils-0.94/sgv4/smp_sgv4_io.c
===================================================================
--- smp_utils-0.94.orig/sgv4/smp_sgv4_io.c
+++ smp_utils-0.94/sgv4/smp_sgv4_io.c
@@ -33,7 +33,7 @@ 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",
+        fprintf(stderr, "device name too long (greater than %lu bytes)\n",
                 sizeof(buff));
         return 0;
     }
@@ -95,7 +95,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;
     }
openSUSE Build Service is sponsored by