Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
39c111ca
Commit
39c111ca
authored
Mar 07, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diag: trivial: kill unused diag_trace
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
cfd0d8a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
diag-yes.c
diag/diag-yes.c
+0
-5
diag.h
include/ppsi/diag.h
+1
-3
No files found.
diag/diag-yes.c
View file @
39c111ca
...
...
@@ -26,11 +26,6 @@ void pp_diag_fsm(struct pp_instance *ppi, char *name, int sequence, int plen)
name
,
ppi
->
next_state
,
ppi
->
next_delay
);
}
void
pp_diag_trace
(
struct
pp_instance
*
ppi
,
const
char
*
f
,
int
line
)
{
pp_printf
(
"TRACE for %p: %s:%i
\n
"
,
ppi
,
f
,
line
);
}
void
pp_diag_error
(
struct
pp_instance
*
ppi
,
int
err
)
{
pp_printf
(
"ERR for %p: %i
\n
"
,
ppi
,
err
);
...
...
include/ppsi/diag.h
View file @
39c111ca
...
...
@@ -6,9 +6,8 @@
#include <ppsi/ppsi.h>
/*
* The diagnostic functions
(diag-yes.c and diag-no.c).
* The diagnostic functions
*
* Use trace like "pp_diag_trace(ppi, __func__, __LINE__)".
* error gets an integer, the other ones two strings (so we can
* strerror(errno) together with the explanation. Avoid diag_printf if
* possible, for size reasons, but here it is anyways.
...
...
@@ -20,7 +19,6 @@ enum {
};
extern
void
pp_diag_fsm
(
struct
pp_instance
*
ppi
,
char
*
name
,
int
seq
,
int
plen
);
extern
void
pp_diag_trace
(
struct
pp_instance
*
ppi
,
const
char
*
f
,
int
line
);
extern
void
pp_diag_error
(
struct
pp_instance
*
ppi
,
int
err
);
extern
void
pp_diag_error_str2
(
struct
pp_instance
*
ppi
,
char
*
s1
,
char
*
s2
);
extern
void
pp_diag_fatal
(
struct
pp_instance
*
ppi
,
char
*
s1
,
char
*
s2
);
...
...
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