diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-08-10 12:03:30 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-08-10 12:03:30 +0200 |
commit | 3ce8ca13f1fa1b8e694b23a4e287f146e7311a85 (patch) | |
tree | 56bd45715fd795636b61feb8815829704829fecd /src/usb-device.c | |
parent | ad68e324c61b708dfd903f2c5fda79f40b87b8bf (diff) | |
download | 0xFFFF-3ce8ca13f1fa1b8e694b23a4e287f146e7311a85.tar.bz2 |
Rename utils.c to printf-utils.c, remove unused functions
Diffstat (limited to 'src/usb-device.c')
-rw-r--r-- | src/usb-device.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/usb-device.c b/src/usb-device.c index 400924d..98737dd 100644 --- a/src/usb-device.c +++ b/src/usb-device.c @@ -28,13 +28,7 @@ #include "global.h" #include "device.h" #include "usb-device.h" - -static int prev = 0; -#define PRINTF_BACK() do { if ( prev ) { printf("\r%-*s\r", prev, ""); prev = 0; } } while (0) -#define PRINTF_ADD(format, ...) do { prev += printf(format, ##__VA_ARGS__); } while (0) -#define PRINTF_LINE(format, ...) do { PRINTF_BACK(); PRINTF_ADD(format, ##__VA_ARGS__); fflush(stdout); } while (0) -#define PRINTF_END() do { if ( prev ) { printf("\n"); prev = 0; } } while (0) -#define PRINTF_ERROR(format, ...) do { PRINTF_END(); ERROR_INFO(format, ##__VA_ARGS__); } while (0) +#include "printf-utils.h" static struct usb_flash_device usb_devices[] = { { 0x0421, 0x0105, 2, 1, -1, FLASH_NOLO, { DEVICE_SU_18, DEVICE_RX_44, DEVICE_RX_48, DEVICE_RX_51, 0 } }, |