提交 de4cbbb5 编写于 作者: P Peter Krempa

util: error: Improve docs for virErrorMsg

Clarify how @info is used and what the returned values look like.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 d9baf0d7
......@@ -905,12 +905,14 @@ void virRaiseErrorObject(const char *filename,
/**
* virErrorMsg:
* @error: the virErrorNumber
* @info: usually the first parameter string
* @info: additional info string
*
* Internal routine to get the message associated to an error raised
* from the library
* Internal routine to get the message associated to @error raised
* from the library.
*
* Returns the constant string associated to @error
* Returns a *printf format string which describes @error. The returned string
* contains exactly one '%s' modifier if @info is non-NULL, or no modifiers at
* all if @info is NULL. If @error is invalid NULL is returned.
*/
const char *
virErrorMsg(virErrorNumber error, const char *info)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册