diff options
| author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-15 22:11:53 +0000 |
|---|---|---|
| committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-15 22:11:53 +0000 |
| commit | 49cf05cb91c9160b79323bb8c798604b3cd8e2f2 (patch) | |
| tree | 36e5c8443666b2c819c949835344b9e4cc465b7f /apps/gui/wps_debug.c | |
| parent | d226bfdc2118d9051d305acc7da21d27864ceb5d (diff) | |
| download | rockbox-49cf05cb91c9160b79323bb8c798604b3cd8e2f2.zip rockbox-49cf05cb91c9160b79323bb8c798604b3cd8e2f2.tar.gz rockbox-49cf05cb91c9160b79323bb8c798604b3cd8e2f2.tar.bz2 rockbox-49cf05cb91c9160b79323bb8c798604b3cd8e2f2.tar.xz | |
Hopefully fix the 64-bit warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13171 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps_debug.c')
| -rw-r--r-- | apps/gui/wps_debug.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/gui/wps_debug.c b/apps/gui/wps_debug.c index e7d3f45..ad9395b 100644 --- a/apps/gui/wps_debug.c +++ b/apps/gui/wps_debug.c @@ -397,13 +397,15 @@ void print_line_info(struct wps_data *data) void print_wps_strings(struct wps_data *data) { + int i, len, total_len = 0, buf_used = 0; + DEBUGF("Strings:\n"); - int i, len = 0, buf_used = 0; for (i = 0; i < data->num_strings; i++) { - len += strlen(data->strings[i]); - buf_used += strlen(data->strings[i]) + 1; - DEBUGF("%2d: (%2d) '%s'\n", i, strlen(data->strings[i]), data->strings[i]); + len = strlen(data->strings[i]); + total_len += len; + buf_used += len + 1; + DEBUGF("%2d: (%2d) '%s'\n", i, len, data->strings[i]); } DEBUGF("\n"); DEBUGF("Total string length: %d\n", len); |