[gtk-vnc] Remove bogus newlines from VNC_DEBUG calls
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Remove bogus newlines from VNC_DEBUG calls
- Date: Tue, 16 Nov 2021 13:28:15 +0000 (UTC)
commit c42f45e86de56920f7e2e1fd44b55e84b7310496
Author: Daniel P. Berrangé <dan berrange com>
Date: Mon Nov 15 17:18:17 2021 +0000
Remove bogus newlines from VNC_DEBUG calls
This macro is a wrappar around g_debug and as such doesn't need to add
its own newline, unless trying to break a single message across lines.
Signed-off-by: Daniel P. Berrangé <berrange redhat com>
src/vncconnection.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index 8ec6437..475cfcb 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -1487,7 +1487,7 @@ static void vnc_connection_ledstate_change(VncConnection *conn)
priv->ledstate = vnc_connection_read_u8(conn);
- VNC_DEBUG("LED state: %d\n", priv->ledstate);
+ VNC_DEBUG("LED state: %d", priv->ledstate);
sigdata.params.ledstate = priv->ledstate;
vnc_connection_emit_main_context(conn, VNC_LED_STATE, &sigdata);
@@ -3472,7 +3472,7 @@ static gboolean vnc_connection_audio_timer(gpointer opaque)
if (!priv->audio_sample)
return FALSE;
- VNC_DEBUG("Audio tick %u\n", priv->audio_sample->length);
+ VNC_DEBUG("Audio tick %u", priv->audio_sample->length);
if (priv->audio)
vnc_audio_playback_data(priv->audio, priv->audio_sample);
@@ -3528,7 +3528,7 @@ static void vnc_connection_audio_action(VncConnection *conn,
action,
};
- VNC_DEBUG("Emit audio action %d\n", action);
+ VNC_DEBUG("Emit audio action %d", action);
g_idle_add(do_vnc_connection_audio_action, &data);
@@ -4011,13 +4011,13 @@ vncEncryptBytes2(unsigned char *where, const int length, unsigned char *key)
error = gcry_cipher_open(&c, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0);
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_cipher_open error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_cipher_open error: %s", gcry_strerror(error));
return error;
}
error = gcry_cipher_setkey(c, newkey, 8);
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_cipher_setkey error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_cipher_setkey error: %s", gcry_strerror(error));
goto cleanup;
}
@@ -4026,7 +4026,7 @@ vncEncryptBytes2(unsigned char *where, const int length, unsigned char *key)
error = gcry_cipher_encrypt(c, where, 8, where, 8);
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_cipher_encrypt error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_cipher_encrypt error: %s", gcry_strerror(error));
goto cleanup;
}
@@ -4036,7 +4036,7 @@ vncEncryptBytes2(unsigned char *where, const int length, unsigned char *key)
error = gcry_cipher_encrypt(c, where + i, 8, where + i, 8);
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_cipher_encrypt error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_cipher_encrypt error: %s", gcry_strerror(error));
goto cleanup;
}
}
@@ -4166,7 +4166,7 @@ static gboolean vnc_connection_perform_auth_ard(VncConnection *conn)
key = malloc(keylen);
if (mod == NULL || resp == NULL
|| pub == NULL || key == NULL) {
- VNC_DEBUG("malloc failed\n");
+ VNC_DEBUG("malloc failed");
error = GPG_ERR_ENOMEM;
goto cleanup_mem;
}
@@ -4188,13 +4188,13 @@ static gboolean vnc_connection_perform_auth_ard(VncConnection *conn)
error=gcry_md_open(&md5, GCRY_MD_MD5, 0);
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_md_open error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_md_open error: %s", gcry_strerror(error));
goto cleanup_mpi;
}
gcry_md_write(md5, key, keylen);
error=gcry_md_final(md5);
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_md_final error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_md_final error: %s", gcry_strerror(error));
goto cleanup_md5;
}
shared = gcry_md_read(md5, GCRY_MD_MD5);
@@ -4212,17 +4212,17 @@ static gboolean vnc_connection_perform_auth_ard(VncConnection *conn)
error=gcry_cipher_open(&aes, GCRY_CIPHER_AES128, GCRY_CIPHER_MODE_ECB, 0);
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_cipher_open error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_cipher_open error: %s", gcry_strerror(error));
goto cleanup_md5;
}
error=gcry_cipher_setkey(aes, shared, 16);
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_cipher_setkey error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_cipher_setkey error: %s", gcry_strerror(error));
goto cleanup;
}
error=gcry_cipher_encrypt(aes, ciphertext, sizeof(ciphertext), userpass, sizeof(userpass));
if (gcry_err_code (error) != GPG_ERR_NO_ERROR) {
- VNC_DEBUG("gcry_cipher_encrypt error: %s\n", gcry_strerror(error));
+ VNC_DEBUG("gcry_cipher_encrypt error: %s", gcry_strerror(error));
goto cleanup;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]