diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2013-02-25 11:32:28 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2013-02-25 11:32:28 +0100 |
commit | 5ca1e0c899de92d1ebbedb0e0c83efc4c3a3e6a8 (patch) | |
tree | 5b5e057e28918e114a2704b71f96fd11c4aaf43b /src | |
parent | b997951f97c0185c3831d5defb500ce410228e99 (diff) | |
download | 0xFFFF-5ca1e0c899de92d1ebbedb0e0c83efc4c3a3e6a8.tar.bz2 |
nolo: Show only first 20 error messages, fix possible infinity loop
Diffstat (limited to 'src')
-rw-r--r-- | src/nolo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -83,9 +83,9 @@ static void nolo_error_log(struct usb_device_info * dev, int only_clear) { char buf[2048]; - size_t i; + size_t i, count; - while ( 1 ) { + for ( count = 0; count < 20; ++count ) { memset(buf, 0, sizeof(buf)); |