mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2017-01-19' into staging
Error reporting patches for 2017-01-19 # gpg: Signature made Thu 19 Jan 2017 14:51:17 GMT # gpg: using RSA key 0x3870B400EB918653 # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" # gpg: aka "Markus Armbruster <armbru@pond.sub.org>" # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867 4E5F 3870 B400 EB91 8653 * remotes/armbru/tags/pull-error-2017-01-19: error: Report certain hints on stderr when no monitor error: error_setg_errno(): errno gets preserved Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
@@ -170,6 +170,9 @@ void error_setg_internal(Error **errp,
|
||||
* Just like error_setg(), with @os_error info added to the message.
|
||||
* If @os_error is non-zero, ": " + strerror(os_error) is appended to
|
||||
* the human-readable error message.
|
||||
*
|
||||
* The value of errno (which usually can get clobbered by almost any
|
||||
* function call) will be preserved.
|
||||
*/
|
||||
#define error_setg_errno(errp, os_error, fmt, ...) \
|
||||
error_setg_errno_internal((errp), __FILE__, __LINE__, __func__, \
|
||||
|
||||
Reference in New Issue
Block a user