Commit 67ee78f8 authored by Federico Vaga's avatar Federico Vaga

rt: repace preprcessor with by using pr_error function

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent a5301284
......@@ -73,14 +73,12 @@ int rt_buffer_setter(struct trtl_proto_header *hin, void *pin,
if (_app->buffers[index].len == size) {
rt_memcpy((uint32_t *)_app->buffers[index].buf,
&din[offset], size);
}
#ifdef LIBRT_ERROR
else {
pp_printf("%s:%d structure %d len not correct %"PRId32" != %d\n\r",
} else {
pr_error("%s:%d structure %d len not correct %"PRId32" != %d\n\r",
__func__, __LINE__, index,
_app->buffers[index].len, size);
}
#endif
offset += (size / 4); /* Next TLV record */
}
......@@ -129,13 +127,11 @@ int rt_buffer_getter(struct trtl_proto_header *hin, void *pin,
rt_memcpy(&dout[offset],
(uint32_t *)_app->buffers[index].buf,
size);
}
#ifdef LIBRT_ERROR
else {
pp_printf("%s: structure %d len not correct %"PRId32" != %d\n\r",
} else {
pr_error("%s: structure %d len not correct %"PRId32" != %d\n\r",
__func__, index, _app->buffers[index].len, size);
}
#endif
offset += (size / 4); /* Next TLV record */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment