зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 814e0d966842 (bug 1544511) for linux build bustages at Assertions.h:344:73: error: format '%d' expects argument of type 'int'. CLOSED TREE
--HG-- extra : histedit_source : 65ccc971c9dae8df059ebea8c90b5b9e84329199
This commit is contained in:
Родитель
bad5d5bfe9
Коммит
415f01584e
|
@ -1576,12 +1576,6 @@ static nsresult InitializeNSSWithFallbacks(const nsACString& profilePath,
|
|||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug,
|
||||
("nocertdb mode or empty profile path -> NSS_NoDB_Init"));
|
||||
SECStatus srv = NSS_NoDB_Init(nullptr);
|
||||
#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||
if (srv != SECSuccess) {
|
||||
MOZ_CRASH_UNSAFE_PRINTF("InitializeNSSWithFallbacks failed: %d",
|
||||
PR_GetError());
|
||||
}
|
||||
#endif
|
||||
return srv == SECSuccess ? NS_OK : NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
@ -1635,10 +1629,6 @@ static nsresult InitializeNSSWithFallbacks(const nsACString& profilePath,
|
|||
// Unload NSS so we can attempt to fix this situation for the user.
|
||||
srv = NSS_Shutdown();
|
||||
if (srv != SECSuccess) {
|
||||
# ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||
MOZ_CRASH_UNSAFE_PRINTF("InitializeNSSWithFallbacks failed: %d",
|
||||
PR_GetError());
|
||||
# endif
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("trying to rename module db"));
|
||||
|
@ -1647,9 +1637,6 @@ static nsresult InitializeNSSWithFallbacks(const nsACString& profilePath,
|
|||
// fall back to NSS_NoDB_Init, which is the behavior we want.
|
||||
nsresult rv = AttemptToRenameBothPKCS11ModuleDBVersions(profilePath);
|
||||
if (NS_FAILED(rv)) {
|
||||
# ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||
MOZ_CRASH_UNSAFE_PRINTF("InitializeNSSWithFallbacks failed: %d", rv);
|
||||
# endif
|
||||
return rv;
|
||||
}
|
||||
srv = ::mozilla::psm::InitializeNSS(profilePath, false, true);
|
||||
|
@ -1668,12 +1655,6 @@ static nsresult InitializeNSSWithFallbacks(const nsACString& profilePath,
|
|||
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("last-resort NSS_NoDB_Init"));
|
||||
srv = NSS_NoDB_Init(nullptr);
|
||||
#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||
if (srv != SECSuccess) {
|
||||
MOZ_CRASH_UNSAFE_PRINTF("InitializeNSSWithFallbacks failed: %d",
|
||||
PR_GetError());
|
||||
}
|
||||
#endif
|
||||
return srv == SECSuccess ? NS_OK : NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче