mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:18:11 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect. The modifications in this commit were automatically made using the following command: find . -name '*.h' -exec sed -i -E 's/dbg\(\) << ("[^"{]*");/dbgln\(\1\);/' {} \;
This commit is contained in:
parent
a410bb8fd5
commit
6fa42af567
5 changed files with 6 additions and 6 deletions
|
@ -321,11 +321,11 @@ static inline bool der_decode_sequence(const u8* in, size_t in_length, ASN1::Lis
|
|||
case ASN1::Kind::Integer:
|
||||
z = in_length;
|
||||
if (!der_decode_integer(in + x, z, *(UnsignedBigInteger*)data)) {
|
||||
dbg() << "could not decode an integer";
|
||||
dbgln("could not decode an integer");
|
||||
return false;
|
||||
}
|
||||
if (!der_length_integer((UnsignedBigInteger*)data, &z)) {
|
||||
dbg() << "could not figure out the length";
|
||||
dbgln("could not figure out the length");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
AK::fill_with_random(salt, SaltLength);
|
||||
|
||||
if (em_length < hash_length + SaltLength + 2) {
|
||||
dbg() << "Ooops...encoding error";
|
||||
dbgln("Ooops...encoding error");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ public:
|
|||
p = NumberTheory::random_big_prime(bits / 2);
|
||||
q = NumberTheory::random_big_prime(bits / 2);
|
||||
lambda = NumberTheory::LCM(p.minus(1), q.minus(1));
|
||||
dbg() << "checking combination p=" << p << ", q=" << q << ", lambda=" << lambda.length();
|
||||
dbgln("checking combination p={}, q={}, lambda={}", p, q, lambda.length());
|
||||
} while (!(NumberTheory::GCD(e, lambda) == 1));
|
||||
|
||||
auto n = p.multiplied_by(q);
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
for (;;) {
|
||||
auto* opcode = bytecode.get_opcode(state);
|
||||
if (!opcode) {
|
||||
dbg() << "Wrong opcode... failed!";
|
||||
dbgln("Wrong opcode... failed!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -274,7 +274,7 @@ public:
|
|||
void set_sni(const StringView& sni)
|
||||
{
|
||||
if (m_context.is_server || m_context.critical_error || m_context.connection_status != ConnectionStatus::Disconnected) {
|
||||
dbg() << "invalid state for set_sni";
|
||||
dbgln("invalid state for set_sni");
|
||||
return;
|
||||
}
|
||||
m_context.SNI = sni;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue