mirror of https://gerrit.osmocom.org/asn1c
LP64
This commit is contained in:
parent
86859bc83d
commit
426b098013
|
@ -48,10 +48,10 @@ IA5String_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||
for(; buf < end; buf++) {
|
||||
if(*buf > 0x7F) {
|
||||
_ASN_ERRLOG(app_errlog, app_key,
|
||||
"%s: value byte %d out of range: "
|
||||
"%s: value byte %ld out of range: "
|
||||
"%d > 127 (%s:%d)",
|
||||
td->name,
|
||||
(buf - st->buf) + 1,
|
||||
(long)((buf - st->buf) + 1),
|
||||
*buf,
|
||||
__FILE__, __LINE__);
|
||||
return -1;
|
||||
|
|
|
@ -54,10 +54,10 @@ NumericString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||
continue;
|
||||
}
|
||||
_ASN_ERRLOG(app_errlog, app_key,
|
||||
"%s: value byte %d (%d) "
|
||||
"%s: value byte %ld (%d) "
|
||||
"not in NumericString alphabet (%s:%d)",
|
||||
td->name,
|
||||
(buf - st->buf) + 1,
|
||||
(long)((buf - st->buf) + 1),
|
||||
*buf,
|
||||
__FILE__, __LINE__);
|
||||
return -1;
|
||||
|
|
|
@ -72,11 +72,11 @@ PrintableString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||
for(; buf < end; buf++) {
|
||||
if(!_PrintableString_alphabet[*buf]) {
|
||||
_ASN_ERRLOG(app_errlog, app_key,
|
||||
"%s: value byte %d (%d) "
|
||||
"%s: value byte %ld (%d) "
|
||||
"not in PrintableString alphabet "
|
||||
"(%s:%d)",
|
||||
td->name,
|
||||
(buf - st->buf) + 1,
|
||||
(long)((buf - st->buf) + 1),
|
||||
*buf,
|
||||
__FILE__, __LINE__);
|
||||
return -1;
|
||||
|
|
|
@ -51,10 +51,10 @@ VisibleString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||
for(; buf < end; buf++) {
|
||||
if(*buf < 0x20 || *buf > 0x7e) {
|
||||
_ASN_ERRLOG(app_errlog, app_key,
|
||||
"%s: value byte %d (%d) "
|
||||
"%s: value byte %ld (%d) "
|
||||
"not in VisibleString alphabet (%s:%d)",
|
||||
td->name,
|
||||
(buf - st->buf) + 1,
|
||||
(long)((buf - st->buf) + 1),
|
||||
*buf,
|
||||
__FILE__, __LINE__);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue