Unreviewed, silence -Wformat warnings
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2019 20:21:06 +0000 (20:21 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2019 20:21:06 +0000 (20:21 +0000)
* NetworkProcess/NetworkHTTPSUpgradeChecker.cpp:
(WebKit::NetworkHTTPSUpgradeChecker::NetworkHTTPSUpgradeChecker):
(WebKit::NetworkHTTPSUpgradeChecker::query):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239736 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/NetworkProcess/NetworkHTTPSUpgradeChecker.cpp

index 12856bf..b2327c0 100644 (file)
@@ -1,3 +1,11 @@
+2019-01-08  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Unreviewed, silence -Wformat warnings
+
+        * NetworkProcess/NetworkHTTPSUpgradeChecker.cpp:
+        (WebKit::NetworkHTTPSUpgradeChecker::NetworkHTTPSUpgradeChecker):
+        (WebKit::NetworkHTTPSUpgradeChecker::query):
+
 2019-01-08  Alex Christensen  <achristensen@webkit.org>
 
         Unreviewed, rolling out r239727.
index 984e966..eeb8d1f 100644 (file)
@@ -65,7 +65,9 @@ NetworkHTTPSUpgradeChecker::NetworkHTTPSUpgradeChecker()
 
         bool isDatabaseOpen = m_database->open(path);
         if (!isDatabaseOpen) {
+#if PLATFORM(COCOA)
             RELEASE_LOG_ERROR(Network, "%p - NetworkHTTPSUpgradeChecker::open failed, error message: %{public}s, database path: %{public}s", this, m_database->lastErrorMsg(), path.utf8().data());
+#endif
             ASSERT_NOT_REACHED();
             return;
         }
@@ -100,7 +102,9 @@ void NetworkHTTPSUpgradeChecker::query(String&& host, PAL::SessionID sessionID,
 
         int stepResult = m_statement->step();
         if (stepResult != SQLITE_ROW && stepResult != SQLITE_DONE) {
+#if PLATFORM(COCOA)
             RELEASE_LOG_ERROR_IF_ALLOWED(sessionID, "step failed with error code %d, error message: %{public}s, database path: %{public}s", stepResult, m_database->lastErrorMsg(), networkHTTPSUpgradeCheckerDatabasePath().utf8().data());
+#endif
             ASSERT_NOT_REACHED();
             RunLoop::main().dispatch([callback = WTFMove(callback)] () mutable {
                 callback(false);