Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Mock Turtle
Commits
48db9eb5
Commit
48db9eb5
authored
May 03, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:lib: fix printf format
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
dcac63c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libmockturtle.c
software/lib/libmockturtle.c
+4
-4
No files found.
software/lib/libmockturtle.c
View file @
48db9eb5
...
...
@@ -308,7 +308,7 @@ struct trtl_dev *trtl_open_by_lun(unsigned int lun)
uint32_t
dev_id
;
int
ret
;
ret
=
snprintf
(
path
,
sizeof
(
path
),
"/dev/trtl.%
d
"
,
lun
);
ret
=
snprintf
(
path
,
sizeof
(
path
),
"/dev/trtl.%
u
"
,
lun
);
if
(
ret
<
0
||
ret
>=
sizeof
(
path
))
{
errno
=
EINVAL
;
return
NULL
;
...
...
@@ -520,7 +520,7 @@ int trtl_cpu_load_application_raw(struct trtl_dev *trtl,
ssize_t
ret
;
size_t
i
=
0
;
snprintf
(
path
,
TRTL_PATH_LEN
,
"%s/%s-%02
d
"
,
snprintf
(
path
,
TRTL_PATH_LEN
,
"%s/%s-%02
u
"
,
wdesc
->
path
,
wdesc
->
name
,
index
);
fd
=
open
(
path
,
O_WRONLY
);
if
(
fd
<
0
)
...
...
@@ -563,7 +563,7 @@ int trtl_cpu_dump_application_raw(struct trtl_dev *trtl,
char
path
[
TRTL_PATH_LEN
];
int
fd
,
i
=
0
,
c
=
100
;
snprintf
(
path
,
TRTL_PATH_LEN
,
"%s/%s-%02
d
"
,
snprintf
(
path
,
TRTL_PATH_LEN
,
"%s/%s-%02
u
"
,
wdesc
->
path
,
wdesc
->
name
,
index
);
fd
=
open
(
path
,
O_RDONLY
);
if
(
fd
<
0
)
...
...
@@ -1117,7 +1117,7 @@ int trtl_hmq_flush(struct trtl_dev *trtl,
char
path
[
TRTL_SYSFS_PATH_LEN
];
snprintf
(
path
,
TRTL_SYSFS_PATH_LEN
,
"/sys/class/mockturtle/%s-%02
d-%02d
/discard_all"
,
"/sys/class/mockturtle/%s-%02
u-%02u
/discard_all"
,
wdesc
->
name
,
idx_cpu
,
idx_hmq
);
return
trtl_sysfs_printf
(
path
,
"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