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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
486cebce
Commit
486cebce
authored
Nov 06, 2024
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace a printf() by a cleaner call to AssertFatal()
parent
fd83be4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
openair1/PHY/TOOLS/tools_defs.h
openair1/PHY/TOOLS/tools_defs.h
+7
-11
No files found.
openair1/PHY/TOOLS/tools_defs.h
View file @
486cebce
...
@@ -618,17 +618,15 @@ typedef enum dft_size_idx {
...
@@ -618,17 +618,15 @@ typedef enum dft_size_idx {
case Sz: \
case Sz: \
return DFT_##Sz; \
return DFT_##Sz; \
break;
break;
static
inline
static
inline
dft_size_idx_t
get_dft
(
int
size
)
dft_size_idx_t
get_dft
(
int
ofdm_symbol_size
)
{
{
switch
(
ofdm_symbol_
size
)
{
switch
(
size
)
{
FOREACH_DFTSZ
(
FIND_ENUM
)
FOREACH_DFTSZ
(
FIND_ENUM
)
default:
default:
printf
(
"function get_dft : unsupported ofdm symbol size
\n
"
);
AssertFatal
(
false
,
"function get_dft : unsupported DFT size %d
\n
"
,
size
);
assert
(
0
);
break
;
break
;
}
}
return
DFT_SIZE_IDXTABLESIZE
;
// never reached and will trigger assertion in idft function;
return
DFT_SIZE_IDXTABLESIZE
;
}
}
#define SZ_iENUM(Sz) IDFT_##Sz,
#define SZ_iENUM(Sz) IDFT_##Sz,
...
@@ -678,14 +676,12 @@ struct {
...
@@ -678,14 +676,12 @@ struct {
return IDFT_##iSz; \
return IDFT_##iSz; \
break;
break;
static
inline
static
inline
idft_size_idx_t
get_idft
(
int
size
)
idft_size_idx_t
get_idft
(
int
ofdm_symbol_size
)
{
{
switch
(
ofdm_symbol_
size
)
{
switch
(
size
)
{
FOREACH_IDFTSZ
(
FIND_iENUM
)
FOREACH_IDFTSZ
(
FIND_iENUM
)
default:
default:
printf
(
"function get_idft : unsupported ofdm symbol size
\n
"
);
AssertFatal
(
false
,
"function get_idft : unsupported iDFT size %d
\n
"
,
size
);
assert
(
0
);
break
;
break
;
}
}
return
IDFT_SIZE_IDXTABLESIZE
;
// never reached and will trigger assertion in idft function
return
IDFT_SIZE_IDXTABLESIZE
;
// never reached and will trigger assertion in idft function
...
...
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