diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-06-14 23:33:55 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-08-31 08:44:20 +0200 |
commit | 8a25624bc6409c740b30b7c6d876491c02273975 (patch) | |
tree | d3143b092db22d64cf6e1b2f2b81f4bc670a34c0 | |
parent | 485a972a43775cf10b1fdf65c5e75fe47a03b3e9 (diff) |
skeletons: Print member's name in CHOICE print
Sometimes, if the choice is a null or integer or ...
it's not easy to know what has really been selected without
the choice member name.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r-- | skeletons/constr_CHOICE.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/skeletons/constr_CHOICE.c b/skeletons/constr_CHOICE.c index 00863a44..18c24cde 100644 --- a/skeletons/constr_CHOICE.c +++ b/skeletons/constr_CHOICE.c @@ -1178,11 +1178,9 @@ CHOICE_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, } /* Print member's name and stuff */ - if(0) { - if(cb(elm->name, strlen(elm->name), app_key) < 0 - || cb(": ", 2, app_key) < 0) - return -1; - } + if(cb(elm->name, strlen(elm->name), app_key) < 0 + || cb(": ", 2, app_key) < 0) + return -1; return elm->type->print_struct(elm->type, memb_ptr, ilevel, cb, app_key); |