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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-boundary-uboot
Commits
25dbe98a
Commit
25dbe98a
authored
16 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Fix some more printf() format issues.
Signed-off-by:
Wolfgang Denk
<
wd@denx.de
>
parent
d5996dd5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
cpu/ixp/npe/npe.c
+1
-1
1 addition, 1 deletion
cpu/ixp/npe/npe.c
include/configs/pxa255_idp.h
+4
-5
4 additions, 5 deletions
include/configs/pxa255_idp.h
lib_mips/bootm.c
+5
-9
5 additions, 9 deletions
lib_mips/bootm.c
net/eth.c
+1
-1
1 addition, 1 deletion
net/eth.c
net/net.c
+1
-1
1 addition, 1 deletion
net/net.c
with
12 additions
and
17 deletions
cpu/ixp/npe/npe.c
+
1
−
1
View file @
25dbe98a
...
...
@@ -67,7 +67,7 @@ static void *npe_alloc(int size)
p
=
npe_alloc_free
;
npe_alloc_free
+=
size
;
}
else
{
printf
(
"
%s
: failed (count=%d, size=%d)!
\n
"
,
count
,
size
);
printf
(
"
npe_alloc
: failed (count=%d, size=%d)!
\n
"
,
count
,
size
);
}
return
p
;
}
...
...
This diff is collapsed.
Click to expand it.
include/configs/pxa255_idp.h
+
4
−
5
View file @
25dbe98a
...
...
@@ -126,7 +126,10 @@
#define CONFIG_BOOTDELAY 3
#define CONFIG_BOOTCOMMAND "bootm 40000"
#define CONFIG_BOOTARGS "root=/dev/mtdblock2 rootfstype=cramfs console=ttyS0,115200"
#define CONFIG_CMDLINE_TAG
#define CONFIG_CMDLINE_TAG 1
/* enable passing of ATAGs */
#define CONFIG_SETUP_MEMORY_TAGS 1
/* #define CONFIG_INITRD_TAG 1 */
/*
* Current memory map for Vibren supplied Linux images:
...
...
@@ -208,10 +211,6 @@
/* "protect off" */
#define CONFIG_CMDLINE_TAG 1
/* enable passing of ATAGs */
#define CONFIG_SETUP_MEMORY_TAGS 1
/* #define CONFIG_INITRD_TAG 1 */
#if defined(CONFIG_CMD_KGDB)
#define CONFIG_KGDB_BAUDRATE 115200
/* speed to run kgdb serial port */
#define CONFIG_KGDB_SER_INDEX 2
/* which serial port to use */
...
...
This diff is collapsed.
Click to expand it.
lib_mips/bootm.c
+
5
−
9
View file @
25dbe98a
...
...
@@ -54,7 +54,7 @@ void do_bootm_linux (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[],
char
*
commandline
=
getenv
(
"bootargs"
);
char
env_buf
[
12
];
int
ret
;
const
char
*
cp
;
char
*
cp
;
/* find kernel entry point */
if
(
images
->
legacy_hdr_valid
)
{
...
...
@@ -89,15 +89,11 @@ void do_bootm_linux (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[],
linux_params_init
(
UNCACHED_SDRAM
(
gd
->
bd
->
bi_boot_params
),
commandline
);
#ifdef CONFIG_MEMSIZE_IN_BYTES
sprintf
(
env_buf
,
"%lu"
,
gd
->
ram_size
);
#ifdef DEBUG
printf
(
"## Giving linux memsize in bytes, %lu
\n
"
,
gd
->
ram_size
);
#endif
sprintf
(
env_buf
,
"%lu"
,
(
ulong
)
gd
->
ram_size
);
debug
(
"## Giving linux memsize in bytes, %lu
\n
"
,
(
ulong
)
gd
->
ram_size
);
#else
sprintf
(
env_buf
,
"%lu"
,
gd
->
ram_size
>>
20
);
#ifdef DEBUG
printf
(
"## Giving linux memsize in MB, %lu
\n
"
,
gd
->
ram_size
>>
20
);
#endif
sprintf
(
env_buf
,
"%lu"
,
(
ulong
)(
gd
->
ram_size
>>
20
));
debug
(
"## Giving linux memsize in MB, %lu
\n
"
,
(
ulong
)(
gd
->
ram_size
>>
20
));
#endif
/* CONFIG_MEMSIZE_IN_BYTES */
linux_env_set
(
"memsize"
,
env_buf
);
...
...
This diff is collapsed.
Click to expand it.
net/eth.c
+
1
−
1
View file @
25dbe98a
...
...
@@ -627,7 +627,7 @@ int eth_initialize(bd_t *bis)
#if defined(CONFIG_MCF52x2)
mcf52x2_miiphy_initialize
(
bis
);
#endif
#if defined(CONFIG_NET
ARM
)
#if defined(CONFIG_
DRIVER_NS7520_ETHER
NET)
ns7520_miiphy_initialize
(
bis
);
#endif
#if defined(CONFIG_DRIVER_TI_EMAC)
...
...
This diff is collapsed.
Click to expand it.
net/net.c
+
1
−
1
View file @
25dbe98a
...
...
@@ -1390,7 +1390,7 @@ NetReceive(volatile uchar * inpkt, int len)
puts
(
"Got IP
\n
"
);
#endif
if
(
len
<
IP_HDR_SIZE
)
{
debug
(
"len bad %d < %l
d
\n
"
,
len
,
IP_HDR_SIZE
);
debug
(
"len bad %d < %l
u
\n
"
,
len
,
(
ulong
)
IP_HDR_SIZE
);
return
;
}
if
(
len
<
ntohs
(
ip
->
ip_len
))
{
...
...
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