Re: [RFC PATCH v5 04/10] KVM: selftests: Print the errno besides error-string in TEST_ASSERT

2021-03-23 Thread Andrew Jones
On Tue, Mar 23, 2021 at 09:52:25PM +0800, Yanan Wang wrote: > Print the errno besides error-string in TEST_ASSERT in the format of > "errno=%d - %s" will explicitly indicate that the string is an error > information. Besides, the errno is easier to be used for debugging > than the error-string. >

[RFC PATCH v5 04/10] KVM: selftests: Print the errno besides error-string in TEST_ASSERT

2021-03-23 Thread Yanan Wang
Print the errno besides error-string in TEST_ASSERT in the format of "errno=%d - %s" will explicitly indicate that the string is an error information. Besides, the errno is easier to be used for debugging than the error-string. Suggested-by: Andrew Jones Signed-off-by: Yanan Wang ---