diff options
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r-- | apps/plugins/lib/overlay.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/lib/overlay.c b/apps/plugins/lib/overlay.c index 91f08e23f0..edae36671f 100644 --- a/apps/plugins/lib/overlay.c +++ b/apps/plugins/lib/overlay.c | |||
@@ -54,7 +54,7 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter, | |||
54 | fd = rb->open(filename, O_RDONLY); | 54 | fd = rb->open(filename, O_RDONLY); |
55 | if (fd < 0) | 55 | if (fd < 0) |
56 | { | 56 | { |
57 | rb->splash(2*HZ, true, "Can't open %s", filename); | 57 | rb->splash(2*HZ, "Can't open %s", filename); |
58 | return PLUGIN_ERROR; | 58 | return PLUGIN_ERROR; |
59 | } | 59 | } |
60 | readsize = rb->read(fd, &header, sizeof(header)); | 60 | readsize = rb->read(fd, &header, sizeof(header)); |
@@ -64,17 +64,17 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter, | |||
64 | 64 | ||
65 | if (readsize != sizeof(header)) | 65 | if (readsize != sizeof(header)) |
66 | { | 66 | { |
67 | rb->splash(2*HZ, true, "Reading %s overlay failed.", name); | 67 | rb->splash(2*HZ, "Reading %s overlay failed.", name); |
68 | return PLUGIN_ERROR; | 68 | return PLUGIN_ERROR; |
69 | } | 69 | } |
70 | if (header.magic != PLUGIN_MAGIC || header.target_id != TARGET_ID) | 70 | if (header.magic != PLUGIN_MAGIC || header.target_id != TARGET_ID) |
71 | { | 71 | { |
72 | rb->splash(2*HZ, true, "%s overlay: Incompatible model.", name); | 72 | rb->splash(2*HZ, "%s overlay: Incompatible model.", name); |
73 | return PLUGIN_ERROR; | 73 | return PLUGIN_ERROR; |
74 | } | 74 | } |
75 | if (header.api_version != PLUGIN_API_VERSION) | 75 | if (header.api_version != PLUGIN_API_VERSION) |
76 | { | 76 | { |
77 | rb->splash(2*HZ, true, "%s overlay: Incompatible version.", name); | 77 | rb->splash(2*HZ, "%s overlay: Incompatible version.", name); |
78 | return PLUGIN_ERROR; | 78 | return PLUGIN_ERROR; |
79 | } | 79 | } |
80 | 80 | ||
@@ -82,14 +82,14 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter, | |||
82 | if (header.load_addr < audiobuf || | 82 | if (header.load_addr < audiobuf || |
83 | header.end_addr > audiobuf + audiobuf_size) | 83 | header.end_addr > audiobuf + audiobuf_size) |
84 | { | 84 | { |
85 | rb->splash(2*HZ, true, "%s overlay doesn't fit into memory.", name); | 85 | rb->splash(2*HZ, "%s overlay doesn't fit into memory.", name); |
86 | return PLUGIN_ERROR; | 86 | return PLUGIN_ERROR; |
87 | } | 87 | } |
88 | 88 | ||
89 | fd = rb->open(filename, O_RDONLY); | 89 | fd = rb->open(filename, O_RDONLY); |
90 | if (fd < 0) | 90 | if (fd < 0) |
91 | { | 91 | { |
92 | rb->splash(2*HZ, true, "Can't open %s", filename); | 92 | rb->splash(2*HZ, "Can't open %s", filename); |
93 | return PLUGIN_ERROR; | 93 | return PLUGIN_ERROR; |
94 | } | 94 | } |
95 | readsize = rb->read(fd, header.load_addr, header.end_addr - header.load_addr); | 95 | readsize = rb->read(fd, header.load_addr, header.end_addr - header.load_addr); |
@@ -97,7 +97,7 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter, | |||
97 | 97 | ||
98 | if (readsize < 0) | 98 | if (readsize < 0) |
99 | { | 99 | { |
100 | rb->splash(2*HZ, true, "Reading %s overlay failed.", name); | 100 | rb->splash(2*HZ, "Reading %s overlay failed.", name); |
101 | return PLUGIN_ERROR; | 101 | return PLUGIN_ERROR; |
102 | } | 102 | } |
103 | /* Zero out bss area */ | 103 | /* Zero out bss area */ |