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
bc3bf431
Commit
bc3bf431
authored
Jan 26, 2013
by
Danilo Sabato
Committed by
Alessandro Rubini
Feb 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-bare-linux: fix pp_diag_verbosity, use of PP_PRINTF and NULL value
parent
01a9222f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bare-startup.c
arch-bare-linux/bare-startup.c
+3
-2
No files found.
arch-bare-linux/bare-startup.c
View file @
bc3bf431
...
...
@@ -22,19 +22,20 @@ void ppsi_clear_bss(void)
static
struct
pp_instance
ppi_static
;
static
struct
pp_net_path
net_path_static
;
int
pp_diag_verbosity
=
0
;
void
ppsi_main
(
void
)
{
struct
pp_instance
*
ppi
=
&
ppi_static
;
/* no malloc, one instance */
pp_puts
(
"bare: starting. Compiled on "
__DATE__
"
\n
"
);
PP_PRINTF
(
"bare: starting. Compiled on %s
\n
"
,
__DATE__
);
ppi
->
net_path
=
&
net_path_static
;
if
(
bare_open_ch
(
ppi
,
"eth0"
))
{
pp_diag_error
(
ppi
,
bare_errno
);
pp_diag_fatal
(
ppi
,
"open_ch"
,
""
);
}
pp_open_instance
(
ppi
,
0
);
pp_open_instance
(
ppi
,
NULL
);
bare_main_loop
(
ppi
);
}
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