Logging

group Logging

Tagged logging utilities for the host core.

Functions

int printf_log(const char *fmt, ...)

Prints a formatted message to stdout with a [HOST ] tag prefix.

Behaves like printf but prepends “[HOST ] “ to every line, making host-side output visually distinct from cluster output in simulation logs.

Parameters:
  • fmt – printf-style format string.

  • ... – Variadic arguments for the format string.

Returns:

Number of characters written, or a negative value on error.