|
36 | 36 | MODULE_DEF(pdrouting, module_pdrouting::pdrouting) |
37 | 37 |
|
38 | 38 | using namespace robotkernel; |
| 39 | +using namespace robotkernel::helpers; |
39 | 40 | using namespace std; |
40 | 41 | using namespace module_pdrouting; |
41 | 42 |
|
@@ -71,7 +72,7 @@ void pdrouting::one_to_many::start() { |
71 | 72 | tmp_pdout.dev = robotkernel::get_device<process_data>(tmp_pdout.name); |
72 | 73 |
|
73 | 74 | if (tmp_pdout.dev->length != in_length) { |
74 | | - throw std::runtime_error(string_printf("%s: pdout %s has wrong length! (need %d bytes, got %d bytes)", |
| 75 | + throw std::runtime_error(string_printf("%s: pdout %s has wrong length! (need %zu bytes, got %zu bytes)", |
75 | 76 | name.c_str(), tmp_pdout.name.c_str(), tmp_pdout.dev->length, in_length)); |
76 | 77 | } |
77 | 78 |
|
@@ -171,8 +172,8 @@ void pdrouting::pd_demux::start() { |
171 | 172 | act_len += output.len; |
172 | 173 |
|
173 | 174 | if (act_len > pdin.dev->length) |
174 | | - throw std::runtime_error(string_printf("demuxer %s length mismatch: pd %s has %u bytes, " |
175 | | - "we need %u bytes\n", name.c_str(), pdin.name.c_str(), pdin.dev->length, act_len)); |
| 175 | + throw std::runtime_error(string_printf("demuxer %s length mismatch: pd %s has %zu bytes, " |
| 176 | + "we need %zu bytes\n", name.c_str(), pdin.name.c_str(), pdin.dev->length, act_len)); |
176 | 177 |
|
177 | 178 | size_t skip_len = 0; |
178 | 179 | bool gen_abort = false; |
@@ -362,8 +363,8 @@ void pdrouting::pd_mux::start() { |
362 | 363 | act_len += input.len; |
363 | 364 |
|
364 | 365 | if (act_len > pdout.dev->length) |
365 | | - throw std::runtime_error(string_printf("muxer %s length mismatch: pd %s has %u bytes, " |
366 | | - "we need %u bytes\n", name.c_str(), pdout.name.c_str(), pdout.dev->length, act_len)); |
| 366 | + throw std::runtime_error(string_printf("muxer %s length mismatch: pd %s has %zu bytes, " |
| 367 | + "we need %zu bytes\n", name.c_str(), pdout.name.c_str(), pdout.dev->length, act_len)); |
367 | 368 |
|
368 | 369 | size_t skip_len = 0; |
369 | 370 | bool gen_abort = false; |
|
0 commit comments