Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
05c7fe0f
Commit
05c7fe0f
authored
16 years ago
by
Rafal Jaworowski
Committed by
Wolfgang Denk
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
API: Fix compilation warnings in api_examples/demo.c.
Signed-off-by:
Rafal Czubak
<
rcz@semihalf.com
>
parent
c14eefcc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
api_examples/demo.c
+9
-8
9 additions, 8 deletions
api_examples/demo.c
with
9 additions
and
8 deletions
api_examples/demo.c
+
9
−
8
View file @
05c7fe0f
...
@@ -58,11 +58,12 @@ int main(int argc, char *argv[])
...
@@ -58,11 +58,12 @@ int main(int argc, char *argv[])
if
(
sig
->
version
>
API_SIG_VERSION
)
if
(
sig
->
version
>
API_SIG_VERSION
)
return
-
3
;
return
-
3
;
printf
(
"API signature found @%x
\n
"
,
sig
);
printf
(
"API signature found @%x
\n
"
,
(
unsigned
int
)
sig
);
test_dump_sig
(
sig
);
test_dump_sig
(
sig
);
printf
(
"
\n
*** Consumer API test ***
\n
"
);
printf
(
"
\n
*** Consumer API test ***
\n
"
);
printf
(
"syscall ptr 0x%08x@%08x
\n
"
,
syscall_ptr
,
&
syscall_ptr
);
printf
(
"syscall ptr 0x%08x@%08x
\n
"
,
(
unsigned
int
)
syscall_ptr
,
(
unsigned
int
)
&
syscall_ptr
);
/* console activities */
/* console activities */
ub_putc
(
'B'
);
ub_putc
(
'B'
);
...
@@ -180,7 +181,7 @@ void test_dump_sig(struct api_signature *sig)
...
@@ -180,7 +181,7 @@ void test_dump_sig(struct api_signature *sig)
printf
(
"signature:
\n
"
);
printf
(
"signature:
\n
"
);
printf
(
" version
\t
= %d
\n
"
,
sig
->
version
);
printf
(
" version
\t
= %d
\n
"
,
sig
->
version
);
printf
(
" checksum
\t
= 0x%08x
\n
"
,
sig
->
checksum
);
printf
(
" checksum
\t
= 0x%08x
\n
"
,
sig
->
checksum
);
printf
(
" sc entry
\t
= 0x%08x
\n
"
,
sig
->
syscall
);
printf
(
" sc entry
\t
= 0x%08x
\n
"
,
(
unsigned
int
)
sig
->
syscall
);
}
}
void
test_dump_si
(
struct
sys_info
*
si
)
void
test_dump_si
(
struct
sys_info
*
si
)
...
@@ -188,9 +189,9 @@ void test_dump_si(struct sys_info *si)
...
@@ -188,9 +189,9 @@ void test_dump_si(struct sys_info *si)
int
i
;
int
i
;
printf
(
"sys info:
\n
"
);
printf
(
"sys info:
\n
"
);
printf
(
" clkbus
\t
= 0x%08x
\n
"
,
si
->
clk_bus
);
printf
(
" clkbus
\t
= 0x%08x
\n
"
,
(
unsigned
int
)
si
->
clk_bus
);
printf
(
" clkcpu
\t
= 0x%08x
\n
"
,
si
->
clk_cpu
);
printf
(
" clkcpu
\t
= 0x%08x
\n
"
,
(
unsigned
int
)
si
->
clk_cpu
);
printf
(
" bar
\t\t
= 0x%08x
\n
"
,
si
->
bar
);
printf
(
" bar
\t\t
= 0x%08x
\n
"
,
(
unsigned
int
)
si
->
bar
);
printf
(
"---
\n
"
);
printf
(
"---
\n
"
);
for
(
i
=
0
;
i
<
si
->
mr_no
;
i
++
)
{
for
(
i
=
0
;
i
<
si
->
mr_no
;
i
++
)
{
...
@@ -252,7 +253,7 @@ void test_dump_di(int handle)
...
@@ -252,7 +253,7 @@ void test_dump_di(int handle)
}
else
if
(
di
->
type
&
DEV_TYP_STOR
)
{
}
else
if
(
di
->
type
&
DEV_TYP_STOR
)
{
printf
(
" type
\t\t
= %s
\n
"
,
test_stor_typ
(
di
->
type
));
printf
(
" type
\t\t
= %s
\n
"
,
test_stor_typ
(
di
->
type
));
printf
(
" blk size
\t\t
= %d
\n
"
,
di
->
di_stor
.
block_size
);
printf
(
" blk size
\t\t
= %d
\n
"
,
(
unsigned
int
)
di
->
di_stor
.
block_size
);
printf
(
" blk count
\t\t
= %d
\n
"
,
di
->
di_stor
.
block_count
);
printf
(
" blk count
\t\t
= %d
\n
"
,
(
unsigned
int
)
di
->
di_stor
.
block_count
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment