usrp: Reorg of libusb error reporting
[debian/gnuradio] / usrp / host / lib / usrp_prims_common.cc
index 689f2154de42ab423c47c05251474b02ef8ddbf5..2d8a0fa2ab8cad17c9ea4c4cccd336288bc22ba9 100644 (file)
@@ -215,7 +215,7 @@ write_internal_ram (libusb_device_handle *udh, unsigned char *buf,
                        (unsigned char*)(buf + (addr - start_addr)), n, 1000);
 
     if (a < 0){
-      fprintf(stderr,"write_internal_ram failed: %i\n", a);
+      fprintf(stderr,"write_internal_ram failed\n");
       return false;
     }
   }
@@ -297,7 +297,7 @@ _usrp_load_firmware (libusb_device_handle *udh, const char *filename,
       break;
     }
     else if (type == 0x02){
-      fprintf(stderr, "Extended address: whatever I do with it?\n");
+      fprintf (stderr, "Extended address: whatever I do with it?\n");
       fprintf (stderr, "%s: invalid line: \"%s\"\n", filename, s);
       goto fail;
     }
@@ -421,7 +421,7 @@ usrp_set_hash (libusb_device_handle *udh, int which,
                                 (unsigned char *) hash, USRP_HASH_SIZE, 1000);
 
   if (r < 0)
-     fprintf (stderr, "usrp: failed to set hash: %i\n", r);
+     fprintf (stderr, "usrp: failed to set hash\n");
 
   return r == USRP_HASH_SIZE;
 }
@@ -437,7 +437,7 @@ usrp_get_hash (libusb_device_handle *udh, int which,
                                 (unsigned char *) hash, USRP_HASH_SIZE, 1000);
 
   if (r < 0)
-     fprintf (stderr, "usrp: failed to get hash: %i\n", r);
+     fprintf (stderr, "usrp: failed to get hash\n");
 
   return r == USRP_HASH_SIZE;
 }