Skip to content

Commit

Permalink
Merge pull request #203 from jktjkt/example-get-debugging
Browse files Browse the repository at this point in the history
Enable debugging of netconf message interchanges in <get> example
  • Loading branch information
rkrejci authored Jun 16, 2016
2 parents 690abd0 + 93e4c2d commit 59f5ba5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/apps/get.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#endif

#define CAPABILITY_PREFIX "urn:ietf:params:netconf:"
#define ARGUMENTS "f:hl:p:v"
#define ARGUMENTS "f:hl:p:vd"

void clb_print(NC_VERB_LEVEL level, const char* msg)
{
Expand Down Expand Up @@ -134,6 +134,10 @@ int main(int argc, char* argv[])
verbose = NC_VERB_VERBOSE;
break;

case 'd':
verbose = NC_VERB_DEBUG;
break;

default:
fprintf(stderr, "unknown argument -%c", optopt);
break;
Expand Down

0 comments on commit 59f5ba5

Please sign in to comment.