mirror of https://gerrit.osmocom.org/asn1c
more debug
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1213 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
619448ed1d
commit
d4f903d4a9
|
@ -264,16 +264,18 @@ main(int ac, char *av[]) {
|
|||
break;
|
||||
case OUT_XER: /* -oxer */
|
||||
if(xer_fprint(stdout, pduType, structure)) {
|
||||
fprintf(stderr, "%s: Cannot convert into XML\n",
|
||||
name);
|
||||
fprintf(stderr,
|
||||
"%s: Cannot convert %s into XML\n",
|
||||
name, pduType->name);
|
||||
exit(EX_UNAVAILABLE);
|
||||
}
|
||||
break;
|
||||
case OUT_DER:
|
||||
erv = der_encode(pduType, structure, write_out, stdout);
|
||||
if(erv.encoded < 0) {
|
||||
fprintf(stderr, "%s: Cannot convert into DER\n",
|
||||
name);
|
||||
fprintf(stderr,
|
||||
"%s: Cannot convert %s into DER\n",
|
||||
name, pduType->name);
|
||||
exit(EX_UNAVAILABLE);
|
||||
}
|
||||
DEBUG("Encoded in %ld bytes of DER", (long)erv.encoded);
|
||||
|
@ -281,8 +283,9 @@ main(int ac, char *av[]) {
|
|||
case OUT_PER:
|
||||
erv = uper_encode(pduType, structure, write_out, stdout);
|
||||
if(erv.encoded < 0) {
|
||||
fprintf(stderr, "%s: Cannot convert into Unaligned PER\n",
|
||||
name);
|
||||
fprintf(stderr,
|
||||
"%s: Cannot convert %s into Unaligned PER\n",
|
||||
name, pduType->name);
|
||||
exit(EX_UNAVAILABLE);
|
||||
}
|
||||
DEBUG("Encoded in %ld bits of UPER", (long)erv.encoded);
|
||||
|
|
Loading…
Reference in New Issue