CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
host_api_log.cpp File Reference

Real implementation of host_log / host_log_hex. More...

#include "plugin_manager/host_api.h"
#include "cdc_log.h"
#include <cstdio>

Go to the source code of this file.

Functions

void host_log (uint8_t level, const char *tag, const char *msg)
 Write a single log line at the given level.
void host_log_hex (const char *tag, const char *label, const uint8_t *data, size_t len)
 Write a labelled hex dump of a binary buffer at debug level.

Detailed Description

Real implementation of host_log / host_log_hex.

The remaining host_* functions still return HOST_ERR_NOT_SUPPORTED through host_api_stubs.cpp. Each Phase 3 subsystem peels the relevant family out of the stub file and lands its own implementation here.

Definition in file host_api_log.cpp.