#include "private.h"
#include <stdio.h>
#include "proto.h"
Go to the source code of this file.
|
void gsm_debug_longword | P2 ((name, value), char *name, longword value) |
|
void gsm_debug_word | P2 ((name, value), char *name, word 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) |
|
◆ P2() [1/2]
◆ P2() [2/2]
void gsm_debug_word P2 |
( |
(name, value) |
, |
|
|
char * |
name, |
|
|
word |
value |
|
) |
| |
◆ P4() [1/2]
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.
46{
47 int nprinted = 0;
48
49 fprintf( stderr,
"%s [%d .. %d]: ",
name, from, to );
50 while (from <= to) {
51
52 fprintf(stderr, "%d ", ptr[ from ] );
53 from++;
54 if (nprinted++ >= 7) {
55 nprinted = 0;
56 if (from < to) putc('\n', stderr);
57 }
58 }
59 putc('\n', stderr);
60}
References name.
◆ P4() [2/2]
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.
26{
27 int nprinted = 0;
28
29 fprintf( stderr,
"%s [%d .. %d]: ",
name, from, to );
30 while (from <= to) {
31 fprintf(stderr, "%d ", ptr[ from ] );
32 from++;
33 if (nprinted++ >= 7) {
34 nprinted = 0;
35 if (from < to) putc('\n', stderr);
36 }
37 }
38 putc('\n', stderr);
39}
References name.