qh_log_context_normalize_name()

Normalize a context name

Synopsis:

#include <qh/log.h>
int qh_log_context_normalize_name(char *context_name)

Arguments:

context_name
The name of the context to convert on input, and the converted name on output. If the context_name is NULL or has zero length, an error is returned.

Library:

qh

Description:

This function normalizes a context name in preparation for context creation (it converts it the same way as qh_log_context_create() does), or gets the name that the creation process used, given the provided context name.

The conversion process happens in-place, replacing the passed-in buffer with the normalized version of the name.

Returns:

EOK on success or a standard errno on failure.