pw_hdlc: Silence decoder resource exhausted log message

This removes the log when the HDLC decoder processes a frame which is
too large for the provided buffer, as it is not necessarily an error
case.

Change-Id: Ic366f5e9dca1961d0019ed96c69235d569541a68
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/32900
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Alexei Frolov <frolv@google.com>
diff --git a/pw_hdlc/decoder.cc b/pw_hdlc/decoder.cc
index b82ce86..7c14cc1 100644
--- a/pw_hdlc/decoder.cc
+++ b/pw_hdlc/decoder.cc
@@ -121,9 +121,9 @@
   }
 
   if (current_frame_size_ > max_size()) {
-    PW_LOG_ERROR("Frame size [%lu] exceeds the maximum buffer size [%lu]",
-                 static_cast<unsigned long>(current_frame_size_),
-                 static_cast<unsigned long>(max_size()));
+    // Frame does not fit into the provided buffer; indicate this to the caller.
+    // This may not be considered an error if the caller is doing a partial
+    // decode.
     return Status::ResourceExhausted();
   }