Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
29859bb9
Commit
29859bb9
authored
9 years ago
by
Cedric Roux
Browse files
Options
Downloads
Patches
Plain Diff
-r option becomes -p, it's more "natural"
parent
7283168f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/utils/T/tracer/remote.c
+3
-3
3 additions, 3 deletions
common/utils/T/tracer/remote.c
with
3 additions
and
3 deletions
common/utils/T/tracer/remote.c
+
3
−
3
View file @
29859bb9
...
...
@@ -10,7 +10,7 @@
#include
"textlog.h"
#include
"../T_defs.h"
#define DEFAULT_REMOTE_PORT 202
0
#define DEFAULT_REMOTE_PORT 202
1
int
get_connection
(
char
*
addr
,
int
port
)
{
...
...
@@ -54,7 +54,7 @@ void usage(void)
" note: you may pass several -on/-off/-ON/-OFF,
\n
"
" they will be processed in order
\n
"
" by default, all is off
\n
"
" -
r
<port>
remote side:
use given port (default %d)
\n
"
,
" -
p
<port> use given port (default %d)
\n
"
DEFAULT_REMOTE_PORT
);
exit
(
1
);
...
...
@@ -112,7 +112,7 @@ int main(int n, char **v)
if
(
!
strcmp
(
v
[
i
],
"-h"
)
||
!
strcmp
(
v
[
i
],
"--help"
))
usage
();
if
(
!
strcmp
(
v
[
i
],
"-d"
))
{
if
(
i
>
n
-
2
)
usage
();
database_filename
=
v
[
++
i
];
continue
;
}
if
(
!
strcmp
(
v
[
i
],
"-
r
"
))
if
(
!
strcmp
(
v
[
i
],
"-
p
"
))
{
if
(
i
>
n
-
2
)
usage
();
port
=
atoi
(
v
[
++
i
]);
continue
;
}
if
(
!
strcmp
(
v
[
i
],
"-on"
))
{
if
(
i
>
n
-
2
)
usage
();
on_off_name
[
on_off_n
]
=
v
[
++
i
];
on_off_action
[
on_off_n
++
]
=
1
;
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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