Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
31
Issues
31
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
943bfb7d
Commit
943bfb7d
authored
Oct 27, 2015
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check-error: complain if mprintf is called
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
9d85b55f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
check-error.c
check-error.c
+10
-0
No files found.
check-error.c
View file @
943bfb7d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
extern
void
__you_should_not_call_printf_from_wrpc_sw
(
void
);
extern
void
__you_should_not_call_printf_from_wrpc_sw
(
void
);
extern
void
__you_should_not_divide_ll_in_wrpc_sw
(
void
);
extern
void
__you_should_not_divide_ll_in_wrpc_sw
(
void
);
extern
void
__please_call_pp_printf_not_mprintf
(
void
);
int
mprintf
(
const
char
*
fmt
,
...);
long
long
__moddi3
(
long
long
A
,
long
long
B
);
long
long
__moddi3
(
long
long
A
,
long
long
B
);
long
long
__divdi3
(
long
long
A
,
long
long
B
);
long
long
__divdi3
(
long
long
A
,
long
long
B
);
...
@@ -18,6 +20,14 @@ int printf(const char *fmt, ...)
...
@@ -18,6 +20,14 @@ int printf(const char *fmt, ...)
return
0
;
return
0
;
}
}
int
mprintf
(
const
char
*
fmt
,
...)
{
__please_call_pp_printf_not_mprintf
();
return
0
;
}
#ifdef CONFIG_PPSI
/* with ppsi we can avoid libgcc code for division */
#ifdef CONFIG_PPSI
/* with ppsi we can avoid libgcc code for division */
/* was used twice in picos_to_ts */
/* was used twice in picos_to_ts */
long
long
__moddi3
(
long
long
A
,
long
long
B
)
long
long
__moddi3
(
long
long
A
,
long
long
B
)
...
...
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