Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
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
1
Merge Requests
1
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
FMC TDC 1ns 5cha
Commits
ea7f6b6c
Commit
ea7f6b6c
authored
Oct 01, 2012
by
Miguel Gómez Sexto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix debug messages
Signed-off-by:
Miguel Gomez
<
magomez@igalia.com
>
parent
0300cf4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
test.c
lib/test.c
+7
-7
No files found.
lib/test.c
View file @
ea7f6b6c
...
...
@@ -14,7 +14,7 @@ int main(int argc, char **argv)
b
=
tdc_open
(
1
);
if
(
!
b
)
{
printf
(
"Unable to open device with lun 1"
);
printf
(
"Unable to open device with lun 1
\n
"
);
exit
(
1
);
}
...
...
@@ -119,9 +119,9 @@ int main(int argc, char **argv)
printf
(
"Error setting active channels
\n
"
);
res
=
tdc_read
(
b
,
6
,
t
,
10
,
O_NONBLOCK
);
if
(
res
==
-
1
&&
errno
==
EINVAL
)
printf
(
"Read from invalid chan OK"
);
printf
(
"Read from invalid chan OK
\n
"
);
else
printf
(
"Re
da from invalid chan wrong
"
);
printf
(
"Re
ad from invalid chan wrong
\n
"
);
/* read from disabled chan */
tdc_activate_all_channels
(
b
);
...
...
@@ -130,9 +130,9 @@ int main(int argc, char **argv)
printf
(
"Error setting active channels
\n
"
);
res
=
tdc_read
(
b
,
1
,
t
,
10
,
O_NONBLOCK
);
if
(
res
==
-
1
&&
errno
==
EINVAL
)
printf
(
"Read from disabled chan OK"
);
printf
(
"Read from disabled chan OK
\n
"
);
else
printf
(
"Read from disabled chan wrong"
);
printf
(
"Read from disabled chan wrong
\n
"
);
/* read with all chans disabled */
tdc_deactivate_all_channels
(
b
);
...
...
@@ -141,9 +141,9 @@ int main(int argc, char **argv)
printf
(
"Error setting active channels
\n
"
);
res
=
tdc_read
(
b
,
0
,
t
,
10
,
O_NONBLOCK
);
if
(
res
==
-
1
&&
errno
==
EINVAL
)
printf
(
"Read with disabled chans OK"
);
printf
(
"Read with disabled chans OK
\n
"
);
else
printf
(
"Read with disabled chans wrong"
);
printf
(
"Read with disabled chans wrong
\n
"
);
tdc_close
(
b
);
...
...
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