rlink: remove redundant text from log messages

__FILE__ and __LINE__ are already printed using the log macros.

Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
This commit is contained in:
Andreas Fritiofson 2011-07-16 23:41:44 +02:00 committed by Øyvind Harboe
parent 5f698273c2
commit d23d61a932
1 changed files with 5 additions and 10 deletions

View File

@ -504,7 +504,7 @@ dtc_run_download(
int usb_err; int usb_err;
int i; int i;
LOG_DEBUG(": %d/%d", command_buffer_size, reply_buffer_size); LOG_DEBUG("%d/%d", command_buffer_size, reply_buffer_size);
usb_err = usb_bulk_write( usb_err = usb_bulk_write(
pHDev_param, pHDev_param,
@ -538,9 +538,7 @@ dtc_run_download(
if (ep2_buffer[0] & 0x01) break; if (ep2_buffer[0] & 0x01) break;
if (!--i) { if (!--i) {
LOG_ERROR("%s, %d: too many retries waiting for DTC status", LOG_ERROR("too many retries waiting for DTC status");
__FILE__, __LINE__
);
return(-ETIMEDOUT); return(-ETIMEDOUT);
} }
} }
@ -556,8 +554,8 @@ dtc_run_download(
); );
if (usb_err < (int)sizeof(ep2_buffer)) { if (usb_err < (int)sizeof(ep2_buffer)) {
LOG_ERROR("%s, %d: Read of endpoint 2 returned %d", LOG_ERROR("Read of endpoint 2 returned %d, expected %d",
__FILE__, __LINE__, usb_err usb_err, reply_buffer_size
); );
return(usb_err); return(usb_err);
} }
@ -1497,10 +1495,7 @@ int rlink_speed(int speed)
} }
if (dtc_start_download() < 0) { if (dtc_start_download() < 0) {
LOG_ERROR("%s, %d: starting DTC: %s", LOG_ERROR("starting DTC: %s", usb_strerror());
__FILE__, __LINE__,
usb_strerror()
);
exit(1); exit(1);
} }