| 2238 | } |
| 2239 | |
| 2240 | void kprintf::put(const char *key, const char *value) |
| 2241 | { |
| 2242 | struct fmt f; |
| 2243 | |
| 2244 | if(key[0] != '%') |
| 2245 | { |
| 2246 | std::cout << "Addition of key " << key << " failed as it does not start with %" << std::endl; |
| 2247 | return; |
| 2248 | } |
| 2249 | f.key = key; f.value = value; |
| 2250 | if (strlen(key) > maxKeySize) |
| 2251 | { |
| 2252 | maxKeySize = strlen(key); |
| 2253 | } |
| 2254 | v.push_back(f); |
| 2255 | return; |
| 2256 | } |
| 2257 | |
| 2258 | // |
| 2259 | // PENDING: |
no outgoing calls
no test coverage detected