Skip to content

Commit

Permalink
Allow 0 arguments for just logging a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
linguini1 committed Jun 9, 2024
1 parent 94b5775 commit fad2830
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/collectors/m10spg_clctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "../drivers/m10spg/ubx_def.h"
#include "collectors.h"
#include "logging.h"
#include <cstdio>

union read_buffer {
UBXNavPositionPayload pos;
Expand Down
2 changes: 1 addition & 1 deletion src/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ void _fetcher_log(FILE *stream, log_level_e lvl, const char *file, const char *f
...);

#define fetcher_log(stream, lvl, fmt_string, ...) \
_fetcher_log((stream), (lvl), __FILE__, __FUNCTION__, __LINE__, (fmt_string), __VA_ARGS__)
_fetcher_log((stream), (lvl), __FILE__, __FUNCTION__, __LINE__, (fmt_string), ##__VA_ARGS__)

#endif // _LOGGING_H_

0 comments on commit fad2830

Please sign in to comment.