Navigation


Changeset 1027:0117a7746b21 in freeDiameter for libfdproto/dictionary.c


Ignore:
Timestamp:
Apr 15, 2013, 4:17:07 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a number of errors and warnings introduced/highlighted by recent commits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/dictionary.c

    r979 r1027  
    3535
    3636#include "fdproto-internal.h"
     37#include <inttypes.h>
    3738
    3839/* Names of the base types */
     
    11791180                                        n = enumval->enum_value.os.len;
    11801181                                for (i=0; i < n; i++)
    1181                                         fd_log_debug("0x%02.2X/'%c' ", enumval->enum_value.os.data[i], ASCII(enumval->enum_value.os.data[i]));
     1182                                        fd_log_debug("0x%02hhX/'%c' ", enumval->enum_value.os.data[i], ASCII(enumval->enum_value.os.data[i]));
    11821183                                if (n == LEN_MAX)
    11831184                                        fd_log_debug("...");
     
    11901191
    11911192                case AVP_TYPE_INTEGER64:
    1192                         fd_log_debug("%lli", enumval->enum_value.i64);
     1193                        fd_log_debug(PRId64, enumval->enum_value.i64);
    11931194                        break;
    11941195
     
    11981199
    11991200                case AVP_TYPE_UNSIGNED64:
    1200                         fd_log_debug("%llu", enumval->enum_value.u64);
     1201                        fd_log_debug(PRIu64, enumval->enum_value.u64);
    12011202                        break;
    12021203
Note: See TracChangeset for help on using the changeset viewer.