ptp2: make CR-macro use gp_result_as_string() to report all errors properly

This commit is contained in:
axxel
2025-11-17 15:50:09 +01:00
parent a567c95b16
commit ecb519d026

View File

@@ -110,7 +110,7 @@ inline static int log_on_ptp_error_helper( int _r, const char* _func, const char
#define CR(RESULT) do {\
int cr_r=(RESULT);\
if (cr_r<0) {\
GP_LOG_E ("'%s' failed: '%s' (%d)", #RESULT, gp_port_result_as_string(cr_r), cr_r);\
GP_LOG_E ("'%s' failed: '%s' (%d)", #RESULT, gp_result_as_string(cr_r), cr_r);\
return cr_r;\
}\
} while (0)