Commit acf7c5d9 authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

Fix some string format warnings in debug messages.

2008-12-29  Paolo Borelli  <pborelli@katamail.com>

	* gedit/gedit-convert.c:
	* gedit/gedit-gio-document-saver.c:
	* gedit/gedit-tab.c:
	Fix some string format warnings in debug messages.


svn path=/trunk/; revision=6746
parent 4639327c
2008-12-29 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-convert.c:
* gedit/gedit-gio-document-saver.c:
* gedit/gedit-tab.c:
Fix some string format warnings in debug messages.
2008-12-28 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
* plugins/taglist/gedit-taglist-plugin-panel.h:
......
......@@ -89,9 +89,9 @@ gedit_convert_to_utf8_from_charset (const gchar *content,
&bytes_read,
new_len,
&conv_error);
gedit_debug_message (DEBUG_UTILS, "Bytes read: %d", bytes_read);
gedit_debug_message (DEBUG_UTILS, "Bytes read: %" G_GSIZE_FORMAT, bytes_read);
/* There is no way we can avoid to run g_utf8_validate on the converted text.
*
* <paolo> hmmm... but in that case g_convert should fail
......@@ -126,9 +126,10 @@ gedit_convert_to_utf8_from_charset (const gchar *content,
}
else
{
gedit_debug_message (DEBUG_UTILS, "Converted from %s to UTF-8 (newlen = %d).",
gedit_debug_message (DEBUG_UTILS,
"Converted from %s to UTF-8 (newlen = %" G_GSIZE_FORMAT ").",
charset, *new_len);
g_return_val_if_fail (converted_contents != NULL, NULL);
utf8_content = converted_contents;
......
......@@ -394,9 +394,9 @@ async_write_cb (GOutputStream *stream,
gvsaver = async->saver;
bytes_written = g_output_stream_write_finish (stream, res, &error);
gedit_debug_message (DEBUG_SAVER, "Written: %d", bytes_written);
gedit_debug_message (DEBUG_SAVER, "Written: %" G_GSSIZE_FORMAT, bytes_written);
if (bytes_written == -1)
{
gedit_debug_message (DEBUG_SAVER, "Write error: %s", error->message);
......@@ -432,7 +432,9 @@ write_file_chunk (AsyncData *async)
gvsaver = async->saver;
gedit_debug_message (DEBUG_SAVER, "Writing next chunk: %Ld/%Ld", gvsaver->priv->bytes_written, gvsaver->priv->size);
gedit_debug_message (DEBUG_SAVER,
"Writing next chunk: %" G_GINT64_FORMAT "/%" G_GINT64_FORMAT,
gvsaver->priv->bytes_written, gvsaver->priv->size);
g_output_stream_write_async (G_OUTPUT_STREAM (gvsaver->priv->stream),
async->buffer + gvsaver->priv->bytes_written,
......@@ -547,10 +549,10 @@ begin_write (AsyncData *async)
async->buffer = buffer;
gvsaver->priv->size = len;
gedit_debug_message (DEBUG_SAVER, "File contents size: %Ld", gvsaver->priv->size);
gedit_debug_message (DEBUG_SAVER, "File contents size: %" G_GINT64_FORMAT, gvsaver->priv->size);
gedit_debug_message (DEBUG_SAVER, "Calling replace_async");
g_file_replace_async (gvsaver->priv->gfile,
NULL,
FALSE,
......
......@@ -806,9 +806,9 @@ message_area_set_progress (GeditTab *tab,
{
if (tab->priv->message_area == NULL)
return;
gedit_debug_message (DEBUG_TAB, "%Ld/%Ld", size, total_size);
gedit_debug_message (DEBUG_TAB, "%" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT, size, total_size);
g_return_if_fail (GEDIT_IS_PROGRESS_MESSAGE_AREA (tab->priv->message_area));
if (total_size == 0)
......@@ -844,8 +844,8 @@ document_loading (GeditDocument *document,
g_return_if_fail ((tab->priv->state == GEDIT_TAB_STATE_LOADING) ||
(tab->priv->state == GEDIT_TAB_STATE_REVERTING));
gedit_debug_message (DEBUG_TAB, "%Ld/%Ld", size, total_size);
gedit_debug_message (DEBUG_TAB, "%" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT, size, total_size);
if (tab->priv->timer == NULL)
{
g_return_if_fail (tab->priv->times_called == 0);
......@@ -1088,8 +1088,9 @@ document_saving (GeditDocument *document,
g_return_if_fail (tab->priv->state == GEDIT_TAB_STATE_SAVING);
gedit_debug_message (DEBUG_TAB, "%Ld/%Ld", size, total_size);
gedit_debug_message (DEBUG_TAB, "%" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT, size, total_size);
if (tab->priv->timer == NULL)
{
g_return_if_fail (tab->priv->times_called == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment