diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-11-11 09:57:37 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-11-11 09:57:37 +0000 |
commit | f74a1aab64410c567054b28a286ad1ef56f2ce7f (patch) | |
tree | 348fdf37929c509dbbde039e6e9af9b34c5a6b7a /apps/gui | |
parent | d0ffa9315f9718f09edd3eab77d48dfacb410624 (diff) | |
download | rockbox-f74a1aab64410c567054b28a286ad1ef56f2ce7f.tar.gz rockbox-f74a1aab64410c567054b28a286ad1ef56f2ce7f.zip |
Add a bit more debug output to checkwps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28552 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index ad3e7e48ce..a0466a8dbd 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -1115,12 +1115,17 @@ static bool load_skin_bmp(struct wps_data *wps_data, struct bitmap *bitmap, char | |||
1115 | 1115 | ||
1116 | fd = open(img_path, O_RDONLY); | 1116 | fd = open(img_path, O_RDONLY); |
1117 | if (fd < 0) | 1117 | if (fd < 0) |
1118 | { | ||
1119 | DEBUGF("Couldn't open %s\n", img_path); | ||
1118 | return false; | 1120 | return false; |
1121 | } | ||
1119 | size_t buf_size = read_bmp_fd(fd, bitmap, 0, | 1122 | size_t buf_size = read_bmp_fd(fd, bitmap, 0, |
1120 | format|FORMAT_RETURN_SIZE, NULL); | 1123 | format|FORMAT_RETURN_SIZE, NULL); |
1121 | char* imgbuf = (char*)skin_buffer_alloc(buf_size); | 1124 | char* imgbuf = (char*)skin_buffer_alloc(buf_size); |
1122 | if (!imgbuf) | 1125 | if (!imgbuf) |
1123 | { | 1126 | { |
1127 | DEBUGF("Not enough skin buffer: need %ld more.\n", | ||
1128 | buf_size - skin_buffer_freespace()); | ||
1124 | close(fd); | 1129 | close(fd); |
1125 | return NULL; | 1130 | return NULL; |
1126 | } | 1131 | } |