This commit is contained in:
Lev Walkin 2004-10-26 09:59:42 +00:00
parent 86859bc83d
commit 426b098013
4 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;