debug.c File Reference

#include "private.h"
#include <stdio.h>
#include "proto.h"

Include dependency graph for debug.c:

Go to the source code of this file.

Functions

void gsm_debug_word P2 ((name, value), char *name, word value)
void gsm_debug_longword P2 ((name, value), char *name, longword value)
void gsm_debug_longwords P4 ((name, from, to, ptr), char *name, int from, int to, longword *ptr)
void gsm_debug_words P4 ((name, from, to, ptr), char *name, int from, int to, word *ptr)


Function Documentation

void gsm_debug_word P2 ( (name, value ,
char *  name,
word  value 
)

Definition at line 69 of file debug.c.

00072 {
00073    fprintf(stderr, "%s: %d\n", name, (long)value);
00074 }

void gsm_debug_longword P2 ( (name, value ,
char *  name,
longword  value 
)

Definition at line 62 of file debug.c.

00065 {
00066    fprintf(stderr, "%s: %d\n", name, (long)value );
00067 }

void gsm_debug_longwords P4 ( (name, from, to, ptr)  ,
char *  name,
int  from,
int  to,
longword ptr 
)

Definition at line 41 of file debug.c.

00046 {
00047    int   nprinted = 0;
00048 
00049    fprintf( stderr, "%s [%d .. %d]: ", name, from, to );
00050    while (from <= to) {
00051 
00052       fprintf(stderr, "%d ", ptr[ from ] );
00053       from++;
00054       if (nprinted++ >= 7) {
00055          nprinted = 0;
00056          if (from < to) putc('\n', stderr);
00057       }
00058    }
00059    putc('\n', stderr);
00060 }

void gsm_debug_words P4 ( (name, from, to, ptr)  ,
char *  name,
int  from,
int  to,
word *  ptr 
)

Definition at line 21 of file debug.c.

00026 {
00027    int   nprinted = 0;
00028 
00029    fprintf( stderr, "%s [%d .. %d]: ", name, from, to );
00030    while (from <= to) {
00031       fprintf(stderr, "%d ", ptr[ from ] );
00032       from++;
00033       if (nprinted++ >= 7) {
00034          nprinted = 0;
00035          if (from < to) putc('\n', stderr);
00036       }
00037    }
00038    putc('\n', stderr);
00039 }


Generated on Thu Apr 16 06:30:37 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6