Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
31
Issues
31
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
efb9330d
Commit
efb9330d
authored
May 25, 2018
by
hongming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the %i to %x in print function dev/sdb-storage.c
parent
130b7ff8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sdb-storage.c
dev/sdb-storage.c
+2
-2
No files found.
dev/sdb-storage.c
View file @
efb9330d
...
@@ -222,7 +222,7 @@ void storage_init(int chosen_i2cif, int chosen_i2c_addr)
...
@@ -222,7 +222,7 @@ void storage_init(int chosen_i2cif, int chosen_i2c_addr)
break
;
break
;
}
}
if
(
magic
==
SDB_MAGIC
)
{
if
(
magic
==
SDB_MAGIC
)
{
pp_printf
(
"sdbfs: found at %
i
in Flash
\n
"
,
pp_printf
(
"sdbfs: found at %
x
in Flash
\n
"
,
entry_points_flash
[
i
]);
entry_points_flash
[
i
]);
wrc_sdb
.
drvdata
=
NULL
;
wrc_sdb
.
drvdata
=
NULL
;
wrc_sdb
.
blocksize
=
storage_cfg
.
blocksize
;
wrc_sdb
.
blocksize
=
storage_cfg
.
blocksize
;
...
@@ -246,7 +246,7 @@ void storage_init(int chosen_i2cif, int chosen_i2c_addr)
...
@@ -246,7 +246,7 @@ void storage_init(int chosen_i2cif, int chosen_i2c_addr)
break
;
break
;
}
}
if
(
magic
==
SDB_MAGIC
)
{
if
(
magic
==
SDB_MAGIC
)
{
pp_printf
(
"sdbfs: found at %
i
in W1
\n
"
,
entry_points_eeprom
[
i
]);
pp_printf
(
"sdbfs: found at %
x
in W1
\n
"
,
entry_points_eeprom
[
i
]);
/* override default i2c settings with w1 ones */
/* override default i2c settings with w1 ones */
wrc_sdb
.
drvdata
=
&
wrpc_w1_bus
;
wrc_sdb
.
drvdata
=
&
wrpc_w1_bus
;
wrc_sdb
.
blocksize
=
1
;
wrc_sdb
.
blocksize
=
1
;
...
...
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