Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
935c5eaa
Commit
935c5eaa
authored
Oct 17, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdh, Status wasn't handled in AttrValueToString (refs #201)
parent
4f4e7c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/lib/co/src/co_cdh.c
src/lib/co/src/co_cdh.c
+7
-1
No files found.
src/lib/co/src/co_cdh.c
View file @
935c5eaa
...
...
@@ -542,6 +542,9 @@ cdh_AttrValueToString (
sprintf
(
sval
,
"%hd"
,
*
(
pwr_tInt16
*
)
Value
);
break
;
case
pwr_eType_Int32
:
case
pwr_eType_Status
:
case
pwr_eType_NetStatus
:
case
pwr_eType_Enum
:
sprintf
(
sval
,
"%d"
,
*
(
pwr_tInt32
*
)
Value
);
break
;
case
pwr_eType_Int64
:
...
...
@@ -554,6 +557,7 @@ cdh_AttrValueToString (
sprintf
(
sval
,
"%hu"
,
*
(
pwr_tUInt16
*
)
Value
);
break
;
case
pwr_eType_UInt32
:
case
pwr_eType_Mask
:
sprintf
(
sval
,
"%u"
,
*
(
pwr_tUInt32
*
)
Value
);
break
;
case
pwr_eType_UInt64
:
...
...
@@ -710,6 +714,9 @@ cdh_StringToAttrValue (
break
;
case
pwr_eType_Int32
:
case
pwr_eType_Status
:
case
pwr_eType_NetStatus
:
case
pwr_eType_Enum
:
if
(
*
String
!=
'\0'
)
{
i32val
=
strtol
(
String
,
&
endp
,
0
);
if
(
errno
==
ERANGE
||
*
endp
!=
'\0'
||
i32val
>
INT_MAX
||
...
...
@@ -763,7 +770,6 @@ cdh_StringToAttrValue (
case
pwr_eType_UInt32
:
case
pwr_eType_Mask
:
case
pwr_eType_Enum
:
while
(
*
String
&&
isspace
(
*
String
))
String
++
;
if
(
*
String
!=
'\0'
)
{
ui32val
=
strtoul
(
String
,
&
endp
,
0
);
...
...
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