mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:23:25 +00:00
core: fix INFO() and ERROR() macros in core/serial_ftdi.cpp
Error introduced in da7ea17b66
: the INFO() and ERROR() macros
pass stdout instead of the format string as first parameter
to report_error(). Ooooops. How did this ever pass the
compile tests!?
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d018b72dab
commit
6880937838
1 changed files with 3 additions and 3 deletions
|
@ -38,8 +38,8 @@
|
|||
#endif
|
||||
|
||||
#include "errorhelper.h"
|
||||
#define INFO(context, fmt, ...) report_info(stderr, "INFO: " fmt, ##__VA_ARGS__)
|
||||
#define ERROR(context, fmt, ...) report_info(stderr, "ERROR: " fmt, ##__VA_ARGS__)
|
||||
#define INFO(context, fmt, ...) report_info("INFO: " fmt, ##__VA_ARGS__)
|
||||
#define ERROR(context, fmt, ...) report_info("ERROR: " fmt, ##__VA_ARGS__)
|
||||
//#define SYSERROR(context, errcode) ERROR(__FILE__ ":" __LINE__ ": %s", strerror(errcode))
|
||||
#define SYSERROR(context, errcode) ;
|
||||
|
||||
|
@ -467,7 +467,7 @@ static dc_status_t serial_ftdi_purge (void *io, dc_direction_t queue)
|
|||
|
||||
size_t input;
|
||||
serial_ftdi_get_available (io, &input);
|
||||
INFO (device->context, "Flush: queue=%u, input=%lu, output=%i", queue, input,
|
||||
INFO (device->context, "Flush: queue=%u, input=%lu, output=%i", queue, (unsigned long)input,
|
||||
serial_ftdi_get_transmitted (device));
|
||||
|
||||
switch (queue) {
|
||||
|
|
Loading…
Add table
Reference in a new issue