Commit 426b0980 authored by Lev Walkin's avatar Lev Walkin

LP64

parent 86859bc8
...@@ -48,10 +48,10 @@ IA5String_constraint(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -48,10 +48,10 @@ IA5String_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
for(; buf < end; buf++) { for(; buf < end; buf++) {
if(*buf > 0x7F) { if(*buf > 0x7F) {
_ASN_ERRLOG(app_errlog, app_key, _ASN_ERRLOG(app_errlog, app_key,
"%s: value byte %d out of range: " "%s: value byte %ld out of range: "
"%d > 127 (%s:%d)", "%d > 127 (%s:%d)",
td->name, td->name,
(buf - st->buf) + 1, (long)((buf - st->buf) + 1),
*buf, *buf,
__FILE__, __LINE__); __FILE__, __LINE__);
return -1; return -1;
......
...@@ -54,10 +54,10 @@ NumericString_constraint(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -54,10 +54,10 @@ NumericString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
continue; continue;
} }
_ASN_ERRLOG(app_errlog, app_key, _ASN_ERRLOG(app_errlog, app_key,
"%s: value byte %d (%d) " "%s: value byte %ld (%d) "
"not in NumericString alphabet (%s:%d)", "not in NumericString alphabet (%s:%d)",
td->name, td->name,
(buf - st->buf) + 1, (long)((buf - st->buf) + 1),
*buf, *buf,
__FILE__, __LINE__); __FILE__, __LINE__);
return -1; return -1;
......
...@@ -72,11 +72,11 @@ PrintableString_constraint(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -72,11 +72,11 @@ PrintableString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
for(; buf < end; buf++) { for(; buf < end; buf++) {
if(!_PrintableString_alphabet[*buf]) { if(!_PrintableString_alphabet[*buf]) {
_ASN_ERRLOG(app_errlog, app_key, _ASN_ERRLOG(app_errlog, app_key,
"%s: value byte %d (%d) " "%s: value byte %ld (%d) "
"not in PrintableString alphabet " "not in PrintableString alphabet "
"(%s:%d)", "(%s:%d)",
td->name, td->name,
(buf - st->buf) + 1, (long)((buf - st->buf) + 1),
*buf, *buf,
__FILE__, __LINE__); __FILE__, __LINE__);
return -1; return -1;
......
...@@ -51,10 +51,10 @@ VisibleString_constraint(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -51,10 +51,10 @@ VisibleString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
for(; buf < end; buf++) { for(; buf < end; buf++) {
if(*buf < 0x20 || *buf > 0x7e) { if(*buf < 0x20 || *buf > 0x7e) {
_ASN_ERRLOG(app_errlog, app_key, _ASN_ERRLOG(app_errlog, app_key,
"%s: value byte %d (%d) " "%s: value byte %ld (%d) "
"not in VisibleString alphabet (%s:%d)", "not in VisibleString alphabet (%s:%d)",
td->name, td->name,
(buf - st->buf) + 1, (long)((buf - st->buf) + 1),
*buf, *buf,
__FILE__, __LINE__); __FILE__, __LINE__);
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment