Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 28, 2024
1 parent b96d981 commit 22189b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/net/protocol/socket_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def _add_chunks_to_queue(self, packet_type: str | int,
data = self.cipher_out.update(padded)
if len(data) != actual_size:
raise RuntimeError(f"expected encrypted size to be {actual_size}, but got {len(data)}")
cryptolog("sending %s bytes %s encrypted with %s bytes of padding",
cryptolog("sending %6s bytes %s encrypted with %s bytes of padding",
payload_size, self.cipher_out_name, padding_size)
if proto_flags & FLAGS_NOHEADER:
assert not self.cipher_out
Expand Down Expand Up @@ -1009,7 +1009,7 @@ def check_packet_size(size_to_check, packet_header):
if not protocol_flags & FLAGS_CIPHER:
self.invalid("unencrypted packet dropped", data)
return
cryptolog("received %i %s encrypted bytes with %i padding",
cryptolog("received %6i %s encrypted bytes with %i bytes of padding",
payload_size, self.cipher_in_name, padding_size)
data = self.cipher_in.update(data)
if padding_size > 0:
Expand Down

0 comments on commit 22189b3

Please sign in to comment.