Fix Trusty breakage.

Bug: 174164961
Test: Build Trusty
Change-Id: Id0d9d464e6c4b600ffec53a4dbb5a1992b573c29
diff --git a/src/cppbor.cpp b/src/cppbor.cpp
index 7cd0f30..e644840 100644
--- a/src/cppbor.cpp
+++ b/src/cppbor.cpp
@@ -224,7 +224,9 @@
             } else if (asNull != nullptr) {
                 out.append("null");
             } else {
+#ifndef __TRUSTY__
                 LOG(ERROR) << "Only boolean/null is implemented for SIMPLE";
+#endif  // __TRUSTY__
                 return false;
             }
             break;
@@ -470,7 +472,9 @@
                    const vector<string>& mapKeysToNotPrint) {
     auto [item, _, message] = parse(encodedCbor);
     if (item == nullptr) {
+#ifndef __TRUSTY__
         LOG(ERROR) << "Data to pretty print is not valid CBOR: " << message;
+#endif  // __TRUSTY__
         return "";
     }