Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
lizhongxiao
OpenXG-RAN
Commits
2499b480
Commit
2499b480
authored
Jun 27, 2020
by
Michael Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hexdump signature
parent
ac907676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+2
-4
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
2499b480
...
@@ -1247,11 +1247,11 @@ void *ue_standalone_pnf_task(void *context)
...
@@ -1247,11 +1247,11 @@ void *ue_standalone_pnf_task(void *context)
}
}
}
}
const
char
*
hexdump
(
uint8_t
*
data
,
size_t
data_len
,
char
*
out
,
size_t
out_len
)
const
char
*
hexdump
(
const
void
*
data
,
size_t
data_len
,
char
*
out
,
size_t
out_len
)
{
{
char
*
p
=
out
;
char
*
p
=
out
;
char
*
endp
=
out
+
out_len
;
char
*
endp
=
out
+
out_len
;
uint8_t
*
q
=
(
uint8_t
*
)(
data
)
;
const
uint8_t
*
q
=
data
;
snprintf
(
p
,
endp
-
p
,
"[%zu]"
,
data_len
);
snprintf
(
p
,
endp
-
p
,
"[%zu]"
,
data_len
);
p
+=
strlen
(
p
);
p
+=
strlen
(
p
);
for
(
size_t
i
=
0
;
i
<
data_len
;
++
i
)
for
(
size_t
i
=
0
;
i
<
data_len
;
++
i
)
...
@@ -1276,7 +1276,6 @@ const char *hexdump(uint8_t *data, size_t data_len, char *out, size_t out_len)
...
@@ -1276,7 +1276,6 @@ const char *hexdump(uint8_t *data, size_t data_len, char *out, size_t out_len)
{
{
int
encoded_size
=
-
1
;
int
encoded_size
=
-
1
;
char
buffer
[
1024
];
char
buffer
[
1024
];
char
foo
[
1024
];
switch
(
msg_type
)
switch
(
msg_type
)
{
{
case
NFAPI_RACH_INDICATION
:
case
NFAPI_RACH_INDICATION
:
...
@@ -1288,7 +1287,6 @@ const char *hexdump(uint8_t *data, size_t data_len, char *out, size_t out_len)
...
@@ -1288,7 +1287,6 @@ const char *hexdump(uint8_t *data, size_t data_len, char *out, size_t out_len)
break
;
break
;
case
NFAPI_RX_ULSCH_INDICATION
:
// is this the right nfapi message_id? Ask Raymond
case
NFAPI_RX_ULSCH_INDICATION
:
// is this the right nfapi message_id? Ask Raymond
encoded_size
=
nfapi_p7_message_pack
(
&
UL
->
rx_ind
,
buffer
,
sizeof
(
buffer
),
NULL
);
encoded_size
=
nfapi_p7_message_pack
(
&
UL
->
rx_ind
,
buffer
,
sizeof
(
buffer
),
NULL
);
LOG_E
(
MAC
,
"%s %s
\n
"
,
__func__
,
hexdump
(
buffer
,
encoded_size
,
foo
,
sizeof
(
foo
)));
LOG_D
(
MAC
,
"RX_IND sent to Proxy
\n
"
);
LOG_D
(
MAC
,
"RX_IND sent to Proxy
\n
"
);
break
;
break
;
case
NFAPI_RX_CQI_INDICATION
:
// is this the right nfapi message_id? Ask Raymond
case
NFAPI_RX_CQI_INDICATION
:
// is this the right nfapi message_id? Ask Raymond
...
...
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