You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ok...@apache.org on 2018/12/12 04:45:14 UTC

[trafficserver] branch master updated: Correct the statements within ink_assert and ink_release_assert

This is an automated email from the ASF dual-hosted git repository.

oknet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 840d7c0  Correct the statements within ink_assert and ink_release_assert
840d7c0 is described below

commit 840d7c06e97ed7ab9191a7cf796be5062e54d929
Author: Oknet Xu <xu...@skyguard.com.cn>
AuthorDate: Wed Dec 12 11:47:17 2018 +0800

    Correct the statements within ink_assert and ink_release_assert
---
 proxy/http/HttpSM.cc       | 8 ++++----
 proxy/logging/LogObject.cc | 2 +-
 src/tscore/CryptoHash.cc   | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 514e9f9..e677a8e 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -1632,7 +1632,7 @@ HttpSM::handle_api_return()
     state_remove_from_list(EVENT_NONE, nullptr);
     return;
   default:
-    ink_release_assert("! Not reached");
+    ink_release_assert(!"Not reached");
     break;
   }
 
@@ -2563,7 +2563,7 @@ HttpSM::state_cache_open_read(int event, void *data)
     break;
 
   default:
-    ink_release_assert("!Unknown event");
+    ink_release_assert(!"Unknown event");
     break;
   }
 
@@ -3980,7 +3980,7 @@ HttpSM::state_remap_request(int event, void * /* data ATS_UNUSED */)
   }
 
   default:
-    ink_assert("Unexpected event inside state_remap_request");
+    ink_assert(!"Unexpected event inside state_remap_request");
     break;
   }
 
@@ -7559,7 +7559,7 @@ HttpSM::set_next_state()
   }
 
   default: {
-    ink_release_assert("!Unknown next action");
+    ink_release_assert(!"Unknown next action");
   }
   }
 }
diff --git a/proxy/logging/LogObject.cc b/proxy/logging/LogObject.cc
index c745bdd..6ccb416 100644
--- a/proxy/logging/LogObject.cc
+++ b/proxy/logging/LogObject.cc
@@ -1338,7 +1338,7 @@ LogObjectManager::log(LogAccess *lad)
   } else if (likely(ret & Log::SKIP)) {
     RecIncrRawStat(log_rsb, mutex->thread_holding, log_stat_event_log_access_skip_stat, 1);
   } else {
-    ink_release_assert("Unexpected result");
+    ink_release_assert(!"Unexpected result");
   }
 
   return ret;
diff --git a/src/tscore/CryptoHash.cc b/src/tscore/CryptoHash.cc
index fec88fb..926e5f2 100644
--- a/src/tscore/CryptoHash.cc
+++ b/src/tscore/CryptoHash.cc
@@ -55,7 +55,7 @@ CryptoContext::CryptoContext()
     break;
 #endif
   default:
-    ink_release_assert("Invalid global URL hash context");
+    ink_release_assert(!"Invalid global URL hash context");
   };
 #if TS_ENABLE_FIPS == 0
   static_assert(CryptoContext::OBJ_SIZE >= sizeof(MD5Context), "bad OBJ_SIZE");