Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdmngr
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IOPSYS
mdmngr
Commits
5a017a70
Commit
5a017a70
authored
6 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
libmobile: add function to set library debugging level
parent
f4102d3a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libmobile.c
+13
-1
13 additions, 1 deletion
libmobile.c
libmobile.h
+0
-1
0 additions, 1 deletion
libmobile.h
with
13 additions
and
2 deletions
libmobile.c
+
13
−
1
View file @
5a017a70
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
static
const
char
*
const
ZTE
=
"usb0"
;
static
const
char
*
const
ZTE
=
"usb0"
;
static
const
char
*
const
HILINK
=
"eth5"
;
static
const
char
*
const
HILINK
=
"eth5"
;
// check other libraries to maintain similar structure, libwifi, libethernet, libdsl
int
lib_debug
=
0
;
struct
json_object
*
mobile_set_pin
(
struct
dongle
*
dev
,
char
*
current_pin
,
char
*
new_pin
)
struct
json_object
*
mobile_set_pin
(
struct
dongle
*
dev
,
char
*
current_pin
,
char
*
new_pin
)
{
{
if
(
strcmp
(
dev
->
if_name
,
ZTE
)
==
0
)
if
(
strcmp
(
dev
->
if_name
,
ZTE
)
==
0
)
...
@@ -295,3 +296,14 @@ struct json_object *mobile_get_system_info(struct dongle *dev)
...
@@ -295,3 +296,14 @@ struct json_object *mobile_get_system_info(struct dongle *dev)
return
NULL
;
return
NULL
;
}
}
void
*
set_lib_debug
(
int
debug_level
)
{
if
(
debug_level
>
1
||
debug_level
<
0
)
{
lib_debug_print
(
"Only debug levels 0 and 1 are available for the library debugging
\n
"
);
return
;
}
lib_debug
=
debug_level
;
lib_debug_print
(
"debug level %d
\n
"
,
lib_debug
);
}
This diff is collapsed.
Click to expand it.
libmobile.h
+
0
−
1
View file @
5a017a70
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
#define LIBMOBILE_H
#define LIBMOBILE_H
#include
"lib_commons.h"
#include
"lib_commons.h"
/**
/**
* Holds information about a mounted mobile dongle.
* Holds information about a mounted mobile dongle.
*/
*/
...
...
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