lib/helper.c
static
inline
const char *unknown_val_str(uint32_t val)
{
	static char un_str[32];
	memset(un_str, 0, 32);
	snprintf(un_str, 32, "Unknown (0x%02X)", val);

	return un_str;
}
/**
 * Generate a statically allocated 'Unknown' string for the provided value.
 * The function is not thread-safe (as most of ipmitool).
 *
 * @param[in] val The value to put into the string
 * @returns       A pointer to a statically allocated string
 */
Generate a statically allocated 'Unknown' string for the provided value.
The function is not thread-safe (as most of ipmitool).

@param[in] val The value to put into the string
@returns       A pointer to a statically allocated string
Generate a statically allocated ' Unknown ' string for the provided value . The function is not thread - safe ( as most of ipmitool ) . @param [ in ] val The value to put into the string @returns A pointer to a statically allocated string
static
inline
const char *unknown_val_str(uint32_t val)
{
	static char un_str[32];
	memset(un_str, 0, 32);
	snprintf(un_str, 32, "Unknown (0x%02X)", val);
	return un_str;
}
static inline const char * unknown_val_str ( uint32_t val ) { static char un_str [ 32 ] ; memset ( un_str , 0 , 32 ) ; snprintf ( un_str , 32 , " " , val ) ; return un_str ; }
Generate a statically allocated 'Unknown' string for the provided value.
Generate a statically allocated ' Unknown ' string for the provided value .