User Tools

Site Tools


solaris:audio_dev_warn.9f

audio_dev_warn


NAME

audio_dev_warn - log a warning message for an audio device

SYNOPSIS

#include <sys/audio/audio_driver.h>

void audio_dev_warn(audio_dev_t *adev, const char *fmt, …);

PARAMETERS

adev

pointer to an audio device allocated with audio_dev_alloc(9F). This parameter can be NULL if no suitable device pointer is available.

fmt

format of message to be displayed

INTERFACE LEVEL

Solaris DDI specific (Solaris DDI)

DESCRIPTION

The audio_dev_warn() function is a convenience wrapper that sends a message to the system console or logs using cmn_err(9F) with a level of CE_WARN. It also prefixes the message with information identifying the device if adev is not NULL.

The format should not contain any trailing newlines, as the newline will be appended by cmn_err() automatically. Unlike cmn_err(), however, no special handling of the first character of the format string is performed.

CONTEXT

This function may be called in any context.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

attributes(7), audio_dev_alloc(9F), cmn_err(9F)


solaris/audio_dev_warn.9f.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in