Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Beam Positoning Monitor - Software
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
Projects
Beam Positoning Monitor - Software
Commits
a55067d7
Commit
a55067d7
authored
8 years ago
by
Lucas Russo
Browse files
Options
Downloads
Patches
Plain Diff
sm_io/protocols/*/*i2c: use more descriptive transfer size message
parent
4c295d70
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sm_io/protocols/ops/sm_pr_i2c.c
+4
-4
4 additions, 4 deletions
src/sm_io/protocols/ops/sm_pr_i2c.c
with
4 additions
and
4 deletions
src/sm_io/protocols/ops/sm_pr_i2c.c
+
4
−
4
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 */
...
...
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