Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Beam Positoning Monitor - Software
Commits
a55067d7
Commit
a55067d7
authored
May 18, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sm_io/protocols/*/*i2c: use more descriptive transfer size message
parent
4c295d70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sm_pr_i2c.c
src/sm_io/protocols/ops/sm_pr_i2c.c
+4
-4
No files found.
src/sm_io/protocols/ops/sm_pr_i2c.c
View file @
a55067d7
...
...
@@ -486,14 +486,14 @@ static ssize_t _i2c_write_generic (smpr_t *self, uint8_t *data,
if
(
trans_size
!=
size
)
{
DBE_DEBUG
(
DBG_SM_PR
|
DBG_LVL_WARN
,
"[sm_pr:i2c] _i2c_
read
_generic: Data size differs from Transfer size.
\n
"
"
\t
Choosing the smallest value
\n
"
);
"[sm_pr:i2c] _i2c_
write
_generic: Data size differs from Transfer size.
\n
"
"
\t
Choosing the smallest value
between trans_size (%u) and size (%lu)
\n
"
,
trans_size
,
size
);
}
/* Choose the smallest one */
trans_size
=
(
trans_size
>
size
)
?
size
:
trans_size
;
DBE_DEBUG
(
DBG_SM_PR
|
DBG_LVL_TRACE
,
"[sm_pr:i2c] _i2c_write_generic: Transmission size = %u bytes
\n
"
,
trans_size
);
"[sm_pr:i2c] _i2c_write_generic: Transmission size
(flags)
= %u bytes
\n
"
,
trans_size
);
/* Send actual data, byte by byte*/
uint32_t
i
;
...
...
@@ -572,7 +572,7 @@ static ssize_t _i2c_read_generic (smpr_t *self, uint8_t *data,
if
(
trans_size
!=
size
)
{
DBE_DEBUG
(
DBG_SM_PR
|
DBG_LVL_WARN
,
"[sm_pr:i2c] _i2c_read_generic: Data size differs from Transfer size.
\n
"
"
\t
Choosing the smallest value
\n
"
);
"
\t
Choosing the smallest value
between trans_size (%u) and size (%lu)
\n
"
,
trans_size
,
size
);
}
/* Choose the smallest one */
...
...
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