From ecb519d0263958a4331ad35733e6cfe5e5522087 Mon Sep 17 00:00:00 2001 From: axxel Date: Mon, 17 Nov 2025 15:50:09 +0100 Subject: [PATCH] ptp2: make CR-macro use gp_result_as_string() to report all errors properly --- camlibs/ptp2/ptp-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/ptp2/ptp-private.h b/camlibs/ptp2/ptp-private.h index ca0f4a99a..98485b47a 100644 --- a/camlibs/ptp2/ptp-private.h +++ b/camlibs/ptp2/ptp-private.h @@ -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)