Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
67ee78f8
Commit
67ee78f8
authored
Jan 16, 2017
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt: repace preprcessor with by using pr_error function
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
a5301284
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
mockturtle-frm-action.c
rt/framework/mockturtle-frm-action.c
+6
-10
No files found.
rt/framework/mockturtle-frm-action.c
View file @
67ee78f8
...
...
@@ -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 */
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment