[epiphany/mcatanzaro/cppcheck: 15/16] smaps: fix format strings
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/cppcheck: 15/16] smaps: fix format strings
- Date: Sun, 17 Nov 2019 17:06:29 +0000 (UTC)
commit f529625ff83be45c7b89d4aef0fab283fd9caeed
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Nov 17 11:02:00 2019 -0600
smaps: fix format strings
lib/ephy-smaps.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/lib/ephy-smaps.c b/lib/ephy-smaps.c
index 41140e0be..5ec28a97d 100644
--- a/lib/ephy-smaps.c
+++ b/lib/ephy-smaps.c
@@ -159,35 +159,35 @@ static void print_vma_table (GString *str,
g_string_append (str,
"<tbody><tr><td></td><td>Clean</td><td>Dirty</td><td>Clean</td><td>Dirty</td><td></td></tr>");
pentry = g_hash_table_lookup (hash, "r-xp");
if (pentry) {
- g_string_append_printf (str,
"<tbody><tr><td>r-xp</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>Code</td></tr>",
+ g_string_append_printf (str,
"<tbody><tr><td>r-xp</td><td>%u</td><td>%u</td><td>%u</td><td>%u</td><td>Code</td></tr>",
pentry->shared_clean, pentry->shared_dirty, pentry->private_clean,
pentry->private_dirty);
add_to_totals (pentry, &totals);
}
pentry = g_hash_table_lookup (hash, "rw-p");
if (pentry) {
- g_string_append_printf (str,
"<tbody><tr><td>rw-p</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>Data</td></tr>",
+ g_string_append_printf (str,
"<tbody><tr><td>rw-p</td><td>%u</td><td>%u</td><td>%u</td><td>%u</td><td>Data</td></tr>",
pentry->shared_clean, pentry->shared_dirty, pentry->private_clean,
pentry->private_dirty);
add_to_totals (pentry, &totals);
}
pentry = g_hash_table_lookup (hash, "r--p");
if (pentry) {
- g_string_append_printf (str,
"<tbody><tr><td>r--p</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>Read-only Data</td></tr>",
+ g_string_append_printf (str,
"<tbody><tr><td>r--p</td><td>%u</td><td>%u</td><td>%u</td><td>%u</td><td>Read-only Data</td></tr>",
pentry->shared_clean, pentry->shared_dirty, pentry->private_clean,
pentry->private_dirty);
add_to_totals (pentry, &totals);
}
pentry = g_hash_table_lookup (hash, "---p");
if (pentry) {
- g_string_append_printf (str,
"<tbody><tr><td>---p</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td></td></tr>",
+ g_string_append_printf (str,
"<tbody><tr><td>---p</td><td>%u</td><td>%u</td><td>%u</td><td>%u</td><td></td></tr>",
pentry->shared_clean, pentry->shared_dirty, pentry->private_clean,
pentry->private_dirty);
add_to_totals (pentry, &totals);
}
pentry = g_hash_table_lookup (hash, "r--s");
if (pentry) {
- g_string_append_printf (str,
"<tbody><tr><td>r--s</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td></td></tr>",
+ g_string_append_printf (str,
"<tbody><tr><td>r--s</td><td>%u</td><td>%u</td><td>%u</td><td>%u</td><td></td></tr>",
pentry->shared_clean, pentry->shared_dirty, pentry->private_clean,
pentry->private_dirty);
add_to_totals (pentry, &totals);
}
- g_string_append_printf (str, "<tbody><tr><td>Total:</td><td>%d kB</td><td>%d kB</td><td>%d kB</td><td>%d
kB</td><td></td></tr>",
+ g_string_append_printf (str, "<tbody><tr><td>Total:</td><td>%u kB</td><td>%u kB</td><td>%u kB</td><td>%u
kB</td><td></td></tr>",
totals.shared_clean, totals.shared_dirty, totals.private_clean,
totals.private_dirty);
g_string_append (str, "</table>");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]