| 108 | } |
| 109 | |
| 110 | void Logging::print(Print * logOutput, const __FlashStringHelper * format, va_list args) |
| 111 | { |
| 112 | #ifndef DISABLE_LOGGING |
| 113 | PGM_P p = reinterpret_cast<PGM_P>(format); |
| 114 | char c = pgm_read_byte(p++); |
| 115 | for(; c != 0; c = pgm_read_byte(p++)) { |
| 116 | if(c == '%') { |
| 117 | c = pgm_read_byte(p++); |
| 118 | printFormat(logOutput, c, (va_list *)&args); |
| 119 | } else { |
| 120 | logOutput->print(c); |
| 121 | } |
| 122 | } |
| 123 | #endif |
| 124 | } |
| 125 | |
| 126 | void Logging::print(Print * logOutput, const char * format, va_list args) |
| 127 | { |
no outgoing calls
no test coverage detected