[glib/wip/pwithnall/converter-stream-debugging] WIP
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/pwithnall/converter-stream-debugging] WIP
- Date: Tue, 5 Apr 2022 17:11:41 +0000 (UTC)
commit 79324c657c86fedb4cd5ea94934e7470d64b8502
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Apr 5 18:11:25 2022 +0100
WIP
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gio/tests/converter-stream.c | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/gio/tests/converter-stream.c b/gio/tests/converter-stream.c
index fbda1642b8..e06d90d72e 100644
--- a/gio/tests/converter-stream.c
+++ b/gio/tests/converter-stream.c
@@ -166,8 +166,6 @@ static void g_compressor_converter_iface_init (GConverterIface *iface);
struct _GCompressorConverter
{
GObject parent_instance;
-
- gchar *message;
};
G_DEFINE_TYPE_WITH_CODE (GCompressorConverter, g_compressor_converter, G_TYPE_OBJECT,
@@ -238,9 +236,6 @@ g_compressor_converter_convert (GConverter *converter,
{
if (*bytes_read > 0)
break;
-g_free (self->message);
-self->message = g_strdup_printf ("%s: inbuf_size %lu, outbuf_size %lu, flags %d, *bytes_read %lu,
*bytes_written %lu, in_end - in %lu, block_size %lu",
- G_STRFUNC, inbuf_size, outbuf_size, flags, *bytes_read, *bytes_written, in_end - in, block_size);
g_set_error_literal (error, G_IO_ERROR,
G_IO_ERROR_PARTIAL_INPUT,
"Need more data");
@@ -264,9 +259,6 @@ self->message = g_strdup_printf ("%s: inbuf_size %lu, outbuf_size %lu, flags %d,
{
if (*bytes_read > 0)
break;
-g_free (self->message);
-self->message = g_strdup_printf ("%s: v %u, inbuf_size %lu, outbuf_size %lu, flags %d, *bytes_read %lu,
*bytes_written %lu, in_end - in %lu, block_size %lu",
- G_STRFUNC, v, inbuf_size, outbuf_size, flags, *bytes_read, *bytes_written, in_end - in,
block_size);
g_set_error_literal (error, G_IO_ERROR,
G_IO_ERROR_PARTIAL_INPUT,
"Need more data");
@@ -280,8 +272,6 @@ self->message = g_strdup_printf ("%s: v %u, inbuf_size %lu, outbuf_size %lu, fla
}
if (in == in_end && (flags & G_CONVERTER_INPUT_AT_END)) {
- g_free (self->message);
-self->message = g_strdup_printf ("%s: converter finished", G_STRFUNC);
return G_CONVERTER_FINISHED;
}
return G_CONVERTER_CONVERTED;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]