Fix build break on Linux all clusters app (#31669)

diff --git a/examples/all-clusters-app/linux/diagnostic-logs-provider-delegate-impl.cpp b/examples/all-clusters-app/linux/diagnostic-logs-provider-delegate-impl.cpp
index 12636a9..4dc94da 100644
--- a/examples/all-clusters-app/linux/diagnostic-logs-provider-delegate-impl.cpp
+++ b/examples/all-clusters-app/linux/diagnostic-logs-provider-delegate-impl.cpp
@@ -152,7 +152,7 @@
     auto rv = fclose(fp);
     if (rv != 0)
     {
-        ChipLogError(NotSpecified, "Error when closing file pointer: %p (%d)", fp, errno);
+        ChipLogError(NotSpecified, "Error when closing file pointer (%d)", errno);
     }
 
     return fileSize;