[easytag] Fix Ogg header and body length format specifier
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix Ogg header and body length format specifier
- Date: Sun, 2 Jun 2013 21:25:42 +0000 (UTC)
commit d47c6cb97515199ce336751da62bcbeafde0525c
Author: David King <amigadave amigadave com>
Date: Sun Jun 2 22:18:36 2013 +0100
Fix Ogg header and body length format specifier
The length is a long and not a gsize.
src/vcedit.c | 52 ++++++++++++++++++++++------------------------------
1 files changed, 22 insertions(+), 30 deletions(-)
---
diff --git a/src/vcedit.c b/src/vcedit.c
index c514f4f..55bcf30 100644
--- a/src/vcedit.c
+++ b/src/vcedit.c
@@ -533,9 +533,8 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.header, ogout.header_len,
&bytes_written, NULL, error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %" G_GSIZE_FORMAT
- " bytes of data were written", bytes_written,
- ogout.header_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes of data "
+ "were written", bytes_written, ogout.header_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -544,9 +543,8 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.body_len, &bytes_written, NULL,
error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %" G_GSIZE_FORMAT
- " bytes of data were written", bytes_written,
- ogout.body_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes of data "
+ "were written", bytes_written, ogout.body_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -562,9 +560,8 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.header, ogout.header_len,
&bytes_written, NULL, error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %"
- G_GSIZE_FORMAT " bytes of data were written",
- bytes_written, ogout.header_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes of "
+ "data were written", bytes_written, ogout.header_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -573,9 +570,8 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.body, ogout.body_len,
&bytes_written, NULL, error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %"
- G_GSIZE_FORMAT " bytes of data were written",
- bytes_written, ogout.body_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes of "
+ "data were written", bytes_written, ogout.body_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -590,9 +586,9 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.header, ogout.header_len,
&bytes_written, NULL, error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %"
- G_GSIZE_FORMAT " bytes of data were written",
- bytes_written, ogout.header_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes "
+ "of data were written", bytes_written,
+ ogout.header_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -601,9 +597,9 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.body, ogout.body_len,
&bytes_written, NULL, error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %"
- G_GSIZE_FORMAT " bytes of data were written",
- bytes_written, ogout.body_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes "
+ "of data were written", bytes_written,
+ ogout.body_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -672,9 +668,8 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.header, ogout.header_len,
&bytes_written, NULL, error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %" G_GSIZE_FORMAT
- " bytes of data were written", bytes_written,
- ogout.header_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes of data "
+ "were written", bytes_written, ogout.header_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -683,9 +678,8 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.body_len, &bytes_written, NULL,
error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %" G_GSIZE_FORMAT
- " bytes of data were written", bytes_written,
- ogout.body_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes of data "
+ "were written", bytes_written, ogout.body_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -699,9 +693,8 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.header, ogout.header_len,
&bytes_written, NULL, error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %" G_GSIZE_FORMAT
- " bytes of data were written", bytes_written,
- ogout.header_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes of data "
+ "were written", bytes_written, ogout.header_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
@@ -710,9 +703,8 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
ogout.body_len, &bytes_written, NULL,
error))
{
- g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %" G_GSIZE_FORMAT
- " bytes of data were written", bytes_written,
- ogout.body_len);
+ g_debug ("Only %" G_GSIZE_FORMAT " bytes out of %ld bytes of data "
+ "were written", bytes_written, ogout.body_len);
g_assert (error == NULL || *error != NULL);
goto cleanup;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]