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