add missing const keyword to log_filter's members
This commit is contained in:
parent
61a24cbd4a
commit
e76fe75c22
|
@ -129,13 +129,13 @@ public:
|
|||
virtual void debug(const char * message, ...) __attribute__ ((format (printf, 2, 3))) = 0;
|
||||
|
||||
// Same with hex dump
|
||||
virtual void error_hex(uint8_t *hex, int size, const char *, ...) __attribute__((format (printf, 4, 5)))
|
||||
virtual void error_hex(const uint8_t *hex, int size, const char *, ...) __attribute__((format (printf, 4, 5)))
|
||||
{error("error_hex not implemented.\n");}
|
||||
virtual void warning_hex(uint8_t *hex, int size, const char *, ...) __attribute__((format (printf, 4, 5)))
|
||||
virtual void warning_hex(const uint8_t *hex, int size, const char *, ...) __attribute__((format (printf, 4, 5)))
|
||||
{error("warning_hex not implemented.\n");}
|
||||
virtual void info_hex(uint8_t *hex, int size, const char *, ...) __attribute__((format (printf, 4, 5)))
|
||||
virtual void info_hex(const uint8_t *hex, int size, const char *, ...) __attribute__((format (printf, 4, 5)))
|
||||
{error("info_hex not implemented.\n");}
|
||||
virtual void debug_hex(uint8_t *hex, int size, const char *, ...) __attribute__((format (printf, 4, 5)))
|
||||
virtual void debug_hex(const uint8_t *hex, int size, const char *, ...) __attribute__((format (printf, 4, 5)))
|
||||
{error("debug_hex not implemented.\n");}
|
||||
|
||||
protected:
|
||||
|
|
|
@ -57,16 +57,16 @@ public:
|
|||
|
||||
void init(std::string layer, logger *logger_, bool tti=false);
|
||||
|
||||
void console(const char * message, ...);
|
||||
void error(const char * message, ...);
|
||||
void warning(const char * message, ...);
|
||||
void info(const char * message, ...);
|
||||
void debug(const char * message, ...);
|
||||
void console(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
void error(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
void warning(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
void info(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
void debug(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
|
||||
void error_hex(const uint8_t *hex, int size, const char * message, ...);
|
||||
void warning_hex(const uint8_t *hex, int size, const char * message, ...);
|
||||
void info_hex(const uint8_t *hex, int size, const char * message, ...);
|
||||
void debug_hex(const uint8_t *hex, int size, const char * message, ...);
|
||||
void error_hex(const uint8_t *hex, int size, const char * message, ...) __attribute__((format (printf, 4, 5)));
|
||||
void warning_hex(const uint8_t *hex, int size, const char * message, ...) __attribute__((format (printf, 4, 5)));
|
||||
void info_hex(const uint8_t *hex, int size, const char * message, ...) __attribute__((format (printf, 4, 5)));
|
||||
void debug_hex(const uint8_t *hex, int size, const char * message, ...) __attribute__((format (printf, 4, 5)));
|
||||
|
||||
class time_itf {
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue