Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bpm-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor 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
This is an archived project. Repository and other project resources are read-only.
bpm
bpm-sw
Commits
278201e3
Commit
278201e3
authored
9 years ago
by
Lucas Russo
Browse files
Options
Downloads
Patches
Plain Diff
src/dev_io/dev_io*: fix rookie mistake of missing break on case
parent
8db32b93
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dev_io/dev_io.c
+3
-2
3 additions, 2 deletions
src/dev_io/dev_io.c
src/dev_io/dev_io_cfg.c
+3
-2
3 additions, 2 deletions
src/dev_io/dev_io_cfg.c
with
6 additions
and
4 deletions
src/dev_io/dev_io.c
+
3
−
2
View file @
278201e3
...
...
@@ -224,12 +224,13 @@ int main (int argc, char *argv[])
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_INFO
,
"[dev_io] Dev_id parameter was not set.
\n
"
"
\t
Defaulting it to the /dev file number ...
\n
"
);
int
matches
=
sscanf
(
dev_entry
,
"/dev/fpga%u"
,
&
dev_id
);
int
matches
=
sscanf
(
dev_entry
,
"/dev/fpga
-
%u"
,
&
dev_id
);
if
(
matches
==
0
)
{
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_FATAL
,
"[dev_io] Dev_entry parameter is invalid.
\n
"
"
\t
It must be in the format
\"
/dev/fpga<device_number>
\"
. Exiting ...
\n
"
);
"
\t
It must be in the format
\"
/dev/fpga
-
<device_number>
\"
. Exiting ...
\n
"
);
goto
err_exit
;
}
break
;
default:
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_INFO
,
"[dev_io] Dev_id parameter was not set. Exiting ...
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
src/dev_io/dev_io_cfg.c
+
3
−
2
View file @
278201e3
...
...
@@ -139,12 +139,13 @@ int main (int argc, char *argv[])
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_INFO
,
"[dev_io] Dev_id parameter was not set.
\n
"
"
\t
Defaulting it to the /dev file number ...
\n
"
);
int
matches
=
sscanf
(
dev_entry
,
"/dev/fpga%u"
,
&
dev_id
);
int
matches
=
sscanf
(
dev_entry
,
"/dev/fpga
-
%u"
,
&
dev_id
);
if
(
matches
==
0
)
{
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_FATAL
,
"[dev_io] Dev_entry parameter is invalid.
\n
"
"
\t
It must be in the format
\"
/dev/fpga<device_number>
\"
. Exiting ...
\n
"
);
"
\t
It must be in the format
\"
/dev/fpga
-
<device_number>
\"
. Exiting ...
\n
"
);
goto
err_exit
;
}
break
;
default:
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_INFO
,
"[dev_io] Dev_id parameter was not set. Exiting ...
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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