Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
61b09fc2
Commit
61b09fc2
authored
Jun 09, 2008
by
Becky Bruce
Committed by
Wolfgang Denk
Jun 12, 2008
Browse files
Change print_size to take phys_size_t
Signed-off-by:
Becky Bruce
<
becky.bruce@freescale.com
>
parent
b57ca3e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/common.h
View file @
61b09fc2
...
...
@@ -204,7 +204,7 @@ void hang (void) __attribute__ ((noreturn));
/* */
long
int
initdram
(
int
);
int
display_options
(
void
);
void
print_size
(
ulong
,
const
char
*
);
void
print_size
(
phys_size_t
,
const
char
*
);
int
print_buffer
(
ulong
addr
,
void
*
data
,
uint
width
,
uint
count
,
uint
linelen
);
/* common/main.c */
...
...
lib_generic/display_options.c
View file @
61b09fc2
...
...
@@ -42,7 +42,7 @@ int display_options (void)
* print sizes as "xxx kB", "xxx.y kB", "xxx MB" or "xxx.y MB" as needed;
* allow for optional trailing string (like "\n")
*/
void
print_size
(
ulong
size
,
const
char
*
s
)
void
print_size
(
phys_size_t
size
,
const
char
*
s
)
{
ulong
m
,
n
;
ulong
d
=
1
<<
20
;
/* 1 MB */
...
...
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