@@ -21,29 +21,29 @@ LogClass Log(&Serial5);
2121#endif
2222#endif
2323
24- int16_t printf_putchar (char c, FILE * fp) {
25- ((class Print *)(fdev_get_udata (fp)))->write ((uint8_t )c);
24+ int16_t printf_putchar (char c, FILE* fp) {
25+ ((class Print *)(fdev_get_udata (fp)))->write ((uint8_t )c);
2626 return 0 ;
2727}
2828
29- void LogClass::print (const char * str, const char level[]) {
29+ void LogClass::print (const char * str, const char level[]) {
3030 this ->uart ->printf (" %s%s\r\n " , level, str);
3131}
3232
33- LogClass::LogClass (UartClass * uart) {
33+ LogClass::LogClass (UartClass* uart) {
3434 this ->uart = uart;
35- log_level = LogLevel::INFO;
35+ log_level = LogLevel::INFO;
3636}
3737
38- void LogClass::setOutputUart (UartClass * uart) { this ->uart = uart; }
38+ void LogClass::setOutputUart (UartClass* uart) { this ->uart = uart; }
3939
4040void LogClass::setLogLevel (const LogLevel log_level) {
4141 this ->log_level = log_level;
4242}
4343
4444LogLevel LogClass::getLogLevel (void ) { return log_level; }
4545
46- bool LogClass::setLogLevelStr (const char * log_level) {
46+ bool LogClass::setLogLevelStr (const char * log_level) {
4747 LogLevel ll = LogLevel::NONE;
4848 if (strstr (log_level, " debug" ) != NULL ) {
4949 ll = LogLevel::DEBUG;
@@ -75,7 +75,7 @@ void LogClass::info(const char str[]) {
7575
7676void LogClass::info (const String str) { this ->info (str.c_str ()); }
7777
78- void LogClass::infof (const char * format, ...) {
78+ void LogClass::infof (const char * format, ...) {
7979 if (log_level >= LogLevel::INFO) {
8080
8181 // Append format with [ERROR]
@@ -101,7 +101,7 @@ void LogClass::debug(const char str[]) {
101101
102102void LogClass::debug (const String str) { this ->debug (str.c_str ()); }
103103
104- void LogClass::debugf (const char * format, ...) {
104+ void LogClass::debugf (const char * format, ...) {
105105 if (log_level >= LogLevel::DEBUG) {
106106
107107 // Append format with [ERROR]
@@ -129,7 +129,7 @@ void LogClass::raw(const char str[]) {
129129
130130void LogClass::raw (const String str) { this ->raw (str.c_str ()); }
131131
132- void LogClass::rawf (const char * format, ...) {
132+ void LogClass::rawf (const char * format, ...) {
133133 FILE f;
134134 va_list ap;
135135
@@ -147,7 +147,7 @@ void LogClass::error(const char str[]) {
147147
148148void LogClass::error (const String str) { this ->error (str.c_str ()); }
149149
150- void LogClass::errorf (const char * format, ...) {
150+ void LogClass::errorf (const char * format, ...) {
151151 if (log_level >= LogLevel::ERROR) {
152152
153153 // Append format with [ERROR]
@@ -172,7 +172,7 @@ void LogClass::warn(const char str[]) {
172172
173173void LogClass::warn (const String str) { this ->warn (str.c_str ()); }
174174
175- void LogClass::warnf (const char * format, ...) {
175+ void LogClass::warnf (const char * format, ...) {
176176 if (log_level >= LogLevel::WARN) {
177177
178178 // Append format with [ERROR]
0 commit comments