| @@ -1,215 +1,230 @@ | | | @@ -1,215 +1,230 @@ |
1 | $NetBSD: patch-aa,v 1.9 2010/03/04 14:56:13 martin Exp $ | | 1 | $NetBSD: patch-aa,v 1.10 2011/09/29 21:00:19 wiz Exp $ |
2 | | | 2 | |
3 | --- xuvmstat.c.orig 2005-09-09 15:38:48.000000000 +0200 | | 3 | --- xuvmstat.c.orig 2005-09-09 13:38:48.000000000 +0000 |
4 | +++ xuvmstat.c 2010-03-04 15:51:54.000000000 +0100 | | 4 | +++ xuvmstat.c |
5 | @@ -40,13 +40,13 @@ | | 5 | @@ -24,6 +24,7 @@ |
| | | 6 | * xuvmstat.c |
| | | 7 | */ |
| | | 8 | |
| | | 9 | +#include <err.h> |
| | | 10 | #include <errno.h> |
| | | 11 | #include <stdio.h> |
| | | 12 | #include <string.h> |
| | | 13 | @@ -40,19 +41,19 @@ |
6 | | | 14 | |
7 | #include "libcdcx.h" | | 15 | #include "libcdcx.h" |
8 | | | 16 | |
9 | -void get_uvmexp __P((struct uvmexp *)); | | 17 | -void get_uvmexp __P((struct uvmexp *)); |
10 | +void get_uvmexp __P((struct uvmexp_sysctl *)); | | 18 | +void get_uvmexp __P((struct uvmexp_sysctl *)); |
11 | void redraw __P((struct xdpy *, Window, GC, int)); | | 19 | void redraw __P((struct xdpy *, Window, GC, int)); |
12 | | | 20 | |
13 | | | 21 | |
14 | u_long black, white, red, green, blue, magenta, orange, purple; | | 22 | u_long black, white, red, green, blue, magenta, orange, purple; |
15 | XFontStruct *fnt_fixed, *fnt_8x13bold; | | 23 | XFontStruct *fnt_fixed, *fnt_8x13bold; |
16 | -struct uvmexp cexp, oexp; /* current, old */ | | 24 | -struct uvmexp cexp, oexp; /* current, old */ |
17 | +struct uvmexp_sysctl curexp, oexp; /* current, old */ | | 25 | +struct uvmexp_sysctl curexp, oexp; /* current, old */ |
18 | struct timeval tv, otv; | | 26 | struct timeval tv, otv; |
19 | struct graph *gp_faults, *gp_traps, *gp_intrs, *gp_ctx; | | 27 | struct graph *gp_faults, *gp_traps, *gp_intrs, *gp_ctx; |
20 | | | 28 | |
21 | @@ -100,7 +100,7 @@ | | 29 | #define WIDTH 300 |
| | | 30 | |
| | | 31 | -main(argc, argv) |
| | | 32 | +int main(argc, argv) |
| | | 33 | |
| | | 34 | int argc; |
| | | 35 | char **argv; |
| | | 36 | @@ -100,7 +101,7 @@ char **argv; |
22 | XMapRaised(xdpy.dpy, win); | | 37 | XMapRaised(xdpy.dpy, win); |
23 | XFlush(xdpy.dpy); | | 38 | XFlush(xdpy.dpy); |
24 | | | 39 | |
25 | - get_uvmexp(&cexp); | | 40 | - get_uvmexp(&cexp); |
26 | + get_uvmexp(&curexp); | | 41 | + get_uvmexp(&curexp); |
27 | gettimeofday(&tv, NULL); | | 42 | gettimeofday(&tv, NULL); |
28 | get_uvmexp(&oexp); | | 43 | get_uvmexp(&oexp); |
29 | gettimeofday(&otv, NULL); | | 44 | gettimeofday(&otv, NULL); |
30 | @@ -135,8 +135,8 @@ | | 45 | @@ -135,8 +136,8 @@ char **argv; |
31 | if (retval == 0) { | | 46 | if (retval == 0) { |
32 | timeradd(&now, &incr, &ping); | | 47 | timeradd(&now, &incr, &ping); |
33 | otv = tv; | | 48 | otv = tv; |
34 | - oexp = cexp; | | 49 | - oexp = cexp; |
35 | - get_uvmexp(&cexp); | | 50 | - get_uvmexp(&cexp); |
36 | + oexp = curexp; | | 51 | + oexp = curexp; |
37 | + get_uvmexp(&curexp); | | 52 | + get_uvmexp(&curexp); |
38 | gettimeofday(&tv, NULL); | | 53 | gettimeofday(&tv, NULL); |
39 | /* NEW GRAPH DATA HERE */ | | 54 | /* NEW GRAPH DATA HERE */ |
40 | | | 55 | |
41 | @@ -186,7 +186,7 @@ | | 56 | @@ -186,7 +187,7 @@ int was_timeout; |
42 | | | 57 | |
43 | XSetFont(xdpy->dpy, gc, fnt_fixed->fid); | | 58 | XSetFont(xdpy->dpy, gc, fnt_fixed->fid); |
44 | snprintf(buf, sizeof(buf),"The UVM system manages %d %d-byte pages", | | 59 | snprintf(buf, sizeof(buf),"The UVM system manages %d %d-byte pages", |
45 | - cexp.npages, cexp.pagesize); | | 60 | - cexp.npages, cexp.pagesize); |
46 | + curexp.npages, curexp.pagesize); | | 61 | + curexp.npages, curexp.pagesize); |
47 | XDrawImageString(xdpy->dpy, win, gc, 5, get_fontheight(fnt_fixed) + y, | | 62 | XDrawImageString(xdpy->dpy, win, gc, 5, get_fontheight(fnt_fixed) + y, |
48 | buf, strlen(buf)); | | 63 | buf, strlen(buf)); |
49 | y += get_fontheight(fnt_fixed) + 5; | | 64 | y += get_fontheight(fnt_fixed) + 5; |
50 | @@ -205,12 +205,12 @@ | | 65 | @@ -205,12 +206,12 @@ int was_timeout; |
51 | colors[4] = purple; | | 66 | colors[4] = purple; |
52 | } | | 67 | } |
53 | | | 68 | |
54 | - vals[0] = cexp.active; | | 69 | - vals[0] = cexp.active; |
55 | - vals[1] = cexp.inactive; | | 70 | - vals[1] = cexp.inactive; |
56 | - vals[2] = cexp.free; | | 71 | - vals[2] = cexp.free; |
57 | - vals[3] = cexp.wired; | | 72 | - vals[3] = cexp.wired; |
58 | - vals[4] = cexp.npages - (vals[0]+vals[1]+vals[2]+vals[3]); | | 73 | - vals[4] = cexp.npages - (vals[0]+vals[1]+vals[2]+vals[3]); |
59 | - y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, cexp.npages, names, | | 74 | - y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, cexp.npages, names, |
60 | + vals[0] = curexp.active; | | 75 | + vals[0] = curexp.active; |
61 | + vals[1] = curexp.inactive; | | 76 | + vals[1] = curexp.inactive; |
62 | + vals[2] = curexp.free; | | 77 | + vals[2] = curexp.free; |
63 | + vals[3] = curexp.wired; | | 78 | + vals[3] = curexp.wired; |
64 | + vals[4] = curexp.npages - (vals[0]+vals[1]+vals[2]+vals[3]); | | 79 | + vals[4] = curexp.npages - (vals[0]+vals[1]+vals[2]+vals[3]); |
65 | + y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, curexp.npages, names, | | 80 | + y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, curexp.npages, names, |
66 | vals, colors, white); | | 81 | vals, colors, white); |
67 | } | | 82 | } |
68 | | | 83 | |
69 | @@ -229,12 +229,12 @@ | | 84 | @@ -229,12 +230,12 @@ int was_timeout; |
70 | colors[4] = purple; | | 85 | colors[4] = purple; |
71 | } | | 86 | } |
72 | | | 87 | |
73 | - vals[0] = cexp.filepages; | | 88 | - vals[0] = cexp.filepages; |
74 | - vals[1] = cexp.anonpages; | | 89 | - vals[1] = cexp.anonpages; |
75 | - vals[2] = cexp.execpages; | | 90 | - vals[2] = cexp.execpages; |
76 | - vals[3] = cexp.free; | | 91 | - vals[3] = cexp.free; |
77 | - vals[4] = cexp.npages - (vals[0]+vals[1]+vals[2]+vals[3]); | | 92 | - vals[4] = cexp.npages - (vals[0]+vals[1]+vals[2]+vals[3]); |
78 | - y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, cexp.npages, names, | | 93 | - y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, cexp.npages, names, |
79 | + vals[0] = curexp.filepages; | | 94 | + vals[0] = curexp.filepages; |
80 | + vals[1] = curexp.anonpages; | | 95 | + vals[1] = curexp.anonpages; |
81 | + vals[2] = curexp.execpages; | | 96 | + vals[2] = curexp.execpages; |
82 | + vals[3] = curexp.free; | | 97 | + vals[3] = curexp.free; |
83 | + vals[4] = curexp.npages - (vals[0]+vals[1]+vals[2]+vals[3]); | | 98 | + vals[4] = curexp.npages - (vals[0]+vals[1]+vals[2]+vals[3]); |
84 | + y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, curexp.npages, names, | | 99 | + y = draw_barbox(xdpy, win, gc, fnt_fixed, 5, 295, y, 5, curexp.npages, names, |
85 | vals, colors, white); | | 100 | vals, colors, white); |
86 | } | | 101 | } |
87 | | | 102 | |
88 | @@ -245,11 +245,11 @@ | | 103 | @@ -245,11 +246,11 @@ int was_timeout; |
89 | u_long vals[3]; | | 104 | u_long vals[3]; |
90 | u_long colors[3]; | | 105 | u_long colors[3]; |
91 | | | 106 | |
92 | - vals[0] = cexp.freemin; colors[0] = black; | | 107 | - vals[0] = cexp.freemin; colors[0] = black; |
93 | - vals[1] = cexp.freetarg; colors[1] = black; | | 108 | - vals[1] = cexp.freetarg; colors[1] = black; |
94 | - vals[2] = cexp.free; colors[2] = green; | | 109 | - vals[2] = cexp.free; colors[2] = green; |
95 | + vals[0] = curexp.freemin; colors[0] = black; | | 110 | + vals[0] = curexp.freemin; colors[0] = black; |
96 | + vals[1] = curexp.freetarg; colors[1] = black; | | 111 | + vals[1] = curexp.freetarg; colors[1] = black; |
97 | + vals[2] = curexp.free; colors[2] = green; | | 112 | + vals[2] = curexp.free; colors[2] = green; |
98 | | | 113 | |
99 | - y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 3, cexp.npages, names, | | 114 | - y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 3, cexp.npages, names, |
100 | + y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 3, curexp.npages, names, | | 115 | + y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 3, curexp.npages, names, |
101 | vals, colors, white); | | 116 | vals, colors, white); |
102 | } | | 117 | } |
103 | | | 118 | |
104 | @@ -260,10 +260,10 @@ | | 119 | @@ -260,10 +261,10 @@ int was_timeout; |
105 | u_long vals[2]; | | 120 | u_long vals[2]; |
106 | u_long colors[2]; | | 121 | u_long colors[2]; |
107 | | | 122 | |
108 | - vals[0] = cexp.inactarg; colors[0] = black; | | 123 | - vals[0] = cexp.inactarg; colors[0] = black; |
109 | - vals[1] = cexp.inactive; colors[1] = blue; | | 124 | - vals[1] = cexp.inactive; colors[1] = blue; |
110 | + vals[0] = curexp.inactarg; colors[0] = black; | | 125 | + vals[0] = curexp.inactarg; colors[0] = black; |
111 | + vals[1] = curexp.inactive; colors[1] = blue; | | 126 | + vals[1] = curexp.inactive; colors[1] = blue; |
112 | | | 127 | |
113 | - y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 2, cexp.npages, names, | | 128 | - y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 2, cexp.npages, names, |
114 | + y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 2, curexp.npages, names, | | 129 | + y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 2, curexp.npages, names, |
115 | vals, colors, white); | | 130 | vals, colors, white); |
116 | } | | 131 | } |
117 | | | 132 | |
118 | @@ -274,10 +274,10 @@ | | 133 | @@ -274,10 +275,10 @@ int was_timeout; |
119 | u_long vals[2]; | | 134 | u_long vals[2]; |
120 | u_long colors[2]; | | 135 | u_long colors[2]; |
121 | | | 136 | |
122 | - vals[0] = cexp.wiredmax; colors[0] = black; | | 137 | - vals[0] = cexp.wiredmax; colors[0] = black; |
123 | - vals[1] = cexp.wired; colors[1] = orange; | | 138 | - vals[1] = cexp.wired; colors[1] = orange; |
124 | + vals[0] = curexp.wiredmax; colors[0] = black; | | 139 | + vals[0] = curexp.wiredmax; colors[0] = black; |
125 | + vals[1] = curexp.wired; colors[1] = orange; | | 140 | + vals[1] = curexp.wired; colors[1] = orange; |
126 | | | 141 | |
127 | - y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 2, cexp.npages, names, | | 142 | - y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 2, cexp.npages, names, |
128 | + y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 2, curexp.npages, names, | | 143 | + y = draw_barlvl(xdpy, win, gc, fnt_fixed, 5, 295, y, 2, curexp.npages, names, |
129 | vals, colors, white); | | 144 | vals, colors, white); |
130 | } | | 145 | } |
131 | | | 146 | |
132 | @@ -289,15 +289,15 @@ | | 147 | @@ -289,15 +290,15 @@ int was_timeout; |
133 | if (init == 0) { | | 148 | if (init == 0) { |
134 | static char *names[] = { "faults", "anon", "ancow", "obj", | | 149 | static char *names[] = { "faults", "anon", "ancow", "obj", |
135 | "copy", "zero" }; | | 150 | "copy", "zero" }; |
136 | - static int *before[6], *after[6]; | | 151 | - static int *before[6], *after[6]; |
137 | + static int64_t *before[6], *after[6]; | | 152 | + static int64_t *before[6], *after[6]; |
138 | static u_long color[6]; | | 153 | static u_long color[6]; |
139 | init = 1; | | 154 | init = 1; |
140 | - before[0] = &oexp.faults; after[0] = &cexp.faults; color[0] = black; | | 155 | - before[0] = &oexp.faults; after[0] = &cexp.faults; color[0] = black; |
141 | - before[1] = &oexp.flt_anon; after[1] = &cexp.flt_anon; color[1] = red; | | 156 | - before[1] = &oexp.flt_anon; after[1] = &cexp.flt_anon; color[1] = red; |
142 | - before[2] = &oexp.flt_acow; after[2] = &cexp.flt_acow; color[2] = blue; | | 157 | - before[2] = &oexp.flt_acow; after[2] = &cexp.flt_acow; color[2] = blue; |
143 | - before[3] = &oexp.flt_obj; after[3] = &cexp.flt_obj; color[3] = green; | | 158 | - before[3] = &oexp.flt_obj; after[3] = &cexp.flt_obj; color[3] = green; |
144 | - before[4] = &oexp.flt_prcopy; after[4] = &cexp.flt_prcopy; color[4] = orange; | | 159 | - before[4] = &oexp.flt_prcopy; after[4] = &cexp.flt_prcopy; color[4] = orange; |
145 | - before[5] = &oexp.flt_przero; after[5] = &cexp.flt_przero; color[5] = purple; | | 160 | - before[5] = &oexp.flt_przero; after[5] = &cexp.flt_przero; color[5] = purple; |
146 | + before[0] = &oexp.faults; after[0] = &curexp.faults; color[0] = black; | | 161 | + before[0] = &oexp.faults; after[0] = &curexp.faults; color[0] = black; |
147 | + before[1] = &oexp.flt_anon; after[1] = &curexp.flt_anon; color[1] = red; | | 162 | + before[1] = &oexp.flt_anon; after[1] = &curexp.flt_anon; color[1] = red; |
148 | + before[2] = &oexp.flt_acow; after[2] = &curexp.flt_acow; color[2] = blue; | | 163 | + before[2] = &oexp.flt_acow; after[2] = &curexp.flt_acow; color[2] = blue; |
149 | + before[3] = &oexp.flt_obj; after[3] = &curexp.flt_obj; color[3] = green; | | 164 | + before[3] = &oexp.flt_obj; after[3] = &curexp.flt_obj; color[3] = green; |
150 | + before[4] = &oexp.flt_prcopy; after[4] = &curexp.flt_prcopy; color[4] = orange; | | 165 | + before[4] = &oexp.flt_prcopy; after[4] = &curexp.flt_prcopy; color[4] = orange; |
151 | + before[5] = &oexp.flt_przero; after[5] = &curexp.flt_przero; color[5] = purple; | | 166 | + before[5] = &oexp.flt_przero; after[5] = &curexp.flt_przero; color[5] = purple; |
152 | gp_faults = create_graph(6, "FAULTS", names, before, after, color, white); | | 167 | gp_faults = create_graph(6, "FAULTS", names, before, after, color, white); |
153 | } | | 168 | } |
154 | | | 169 | |
155 | @@ -311,10 +311,10 @@ | | 170 | @@ -311,10 +312,10 @@ int was_timeout; |
156 | | | 171 | |
157 | if (init == 0) { | | 172 | if (init == 0) { |
158 | static char *names[] = { "traps" }; | | 173 | static char *names[] = { "traps" }; |
159 | - static int *before[1], *after[1]; | | 174 | - static int *before[1], *after[1]; |
160 | + static int64_t *before[1], *after[1]; | | 175 | + static int64_t *before[1], *after[1]; |
161 | static u_long color[1]; | | 176 | static u_long color[1]; |
162 | init = 1; | | 177 | init = 1; |
163 | - before[0] = &oexp.traps; after[0] = &cexp.traps; color[0] = black; | | 178 | - before[0] = &oexp.traps; after[0] = &cexp.traps; color[0] = black; |
164 | + before[0] = &oexp.traps; after[0] = &curexp.traps; color[0] = black; | | 179 | + before[0] = &oexp.traps; after[0] = &curexp.traps; color[0] = black; |
165 | gp_traps = create_graph(1, "TRAPS", names, before, after, color, white); | | 180 | gp_traps = create_graph(1, "TRAPS", names, before, after, color, white); |
166 | } | | 181 | } |
167 | | | 182 | |
168 | @@ -330,12 +330,12 @@ | | 183 | @@ -330,12 +331,12 @@ int was_timeout; |
169 | | | 184 | |
170 | if (init == 0) { | | 185 | if (init == 0) { |
171 | static char *names[] = { "intrs", "soft", "syscall" }; | | 186 | static char *names[] = { "intrs", "soft", "syscall" }; |
172 | - static int *before[3], *after[3]; | | 187 | - static int *before[3], *after[3]; |
173 | + static int64_t *before[3], *after[3]; | | 188 | + static int64_t *before[3], *after[3]; |
174 | static u_long color[3]; | | 189 | static u_long color[3]; |
175 | init = 1; | | 190 | init = 1; |
176 | - before[0] = &oexp.intrs; after[0] = &cexp.intrs; color[0] = black; | | 191 | - before[0] = &oexp.intrs; after[0] = &cexp.intrs; color[0] = black; |
177 | - before[1] = &oexp.softs; after[1] = &cexp.softs; color[1] = blue; | | 192 | - before[1] = &oexp.softs; after[1] = &cexp.softs; color[1] = blue; |
178 | - before[2] = &oexp.syscalls; after[2] = &cexp.syscalls; color[2] = red; | | 193 | - before[2] = &oexp.syscalls; after[2] = &cexp.syscalls; color[2] = red; |
179 | + before[0] = &oexp.intrs; after[0] = &curexp.intrs; color[0] = black; | | 194 | + before[0] = &oexp.intrs; after[0] = &curexp.intrs; color[0] = black; |
180 | + before[1] = &oexp.softs; after[1] = &curexp.softs; color[1] = blue; | | 195 | + before[1] = &oexp.softs; after[1] = &curexp.softs; color[1] = blue; |
181 | + before[2] = &oexp.syscalls; after[2] = &curexp.syscalls; color[2] = red; | | 196 | + before[2] = &oexp.syscalls; after[2] = &curexp.syscalls; color[2] = red; |
182 | gp_intrs = create_graph(3, "INTRS", names, before, after, color, white); | | 197 | gp_intrs = create_graph(3, "INTRS", names, before, after, color, white); |
183 | } | | 198 | } |
184 | | | 199 | |
185 | @@ -349,12 +349,12 @@ | | 200 | @@ -349,12 +350,12 @@ int was_timeout; |
186 | | | 201 | |
187 | if (init == 0) { | | 202 | if (init == 0) { |
188 | static char *names[] = { "cswtch", "swin", "swout" }; | | 203 | static char *names[] = { "cswtch", "swin", "swout" }; |
189 | - static int *before[3], *after[3]; | | 204 | - static int *before[3], *after[3]; |
190 | + static int64_t *before[3], *after[3]; | | 205 | + static int64_t *before[3], *after[3]; |
191 | static u_long color[3]; | | 206 | static u_long color[3]; |
192 | init = 1; | | 207 | init = 1; |
193 | - before[0] = &oexp.swtch; after[0] = &cexp.swtch; color[0] = black; | | 208 | - before[0] = &oexp.swtch; after[0] = &cexp.swtch; color[0] = black; |
194 | - before[1] = &oexp.swapins; after[1] = &cexp.swapins; color[1] = green; | | 209 | - before[1] = &oexp.swapins; after[1] = &cexp.swapins; color[1] = green; |
195 | - before[2] = &oexp.swapouts; after[2] = &cexp.swapouts; color[2] = red; | | 210 | - before[2] = &oexp.swapouts; after[2] = &cexp.swapouts; color[2] = red; |
196 | + before[0] = &oexp.swtch; after[0] = &curexp.swtch; color[0] = black; | | 211 | + before[0] = &oexp.swtch; after[0] = &curexp.swtch; color[0] = black; |
197 | + before[1] = &oexp.swapins; after[1] = &curexp.swapins; color[1] = green; | | 212 | + before[1] = &oexp.swapins; after[1] = &curexp.swapins; color[1] = green; |
198 | + before[2] = &oexp.swapouts; after[2] = &curexp.swapouts; color[2] = red; | | 213 | + before[2] = &oexp.swapouts; after[2] = &curexp.swapouts; color[2] = red; |
199 | gp_ctx = create_graph(3, "SWITCH/SWAP", names, before, after, color, white); | | 214 | gp_ctx = create_graph(3, "SWITCH/SWAP", names, before, after, color, white); |
200 | } | | 215 | } |
201 | | | 216 | |
202 | @@ -372,26 +372,31 @@ | | 217 | @@ -372,26 +373,31 @@ int was_timeout; |
203 | buf, strlen(buf)); | | 218 | buf, strlen(buf)); |
204 | y += get_fontheight(fnt_fixed) + 5; | | 219 | y += get_fontheight(fnt_fixed) + 5; |
205 | | | 220 | |
206 | +#if __NetBSD_Version__ >= 599002100 | | 221 | +#if __NetBSD_Version__ >= 599002100 |
207 | + snprintf(buf, sizeof(buf), " woke=%d, revs=%d", | | 222 | + snprintf(buf, sizeof(buf), " woke=%d, revs=%d", |
208 | + curexp.pdwoke, curexp.pdrevs); | | 223 | + curexp.pdwoke, curexp.pdrevs); |
209 | +#else | | 224 | +#else |
210 | snprintf(buf, sizeof(buf), " woke=%d, revs=%d, swout=%d", | | 225 | snprintf(buf, sizeof(buf), " woke=%d, revs=%d, swout=%d", |
211 | - cexp.pdwoke, cexp.pdrevs, cexp.pdswout); | | 226 | - cexp.pdwoke, cexp.pdrevs, cexp.pdswout); |
212 | + curexp.pdwoke, curexp.pdrevs, curexp.pdswout); | | 227 | + curexp.pdwoke, curexp.pdrevs, curexp.pdswout); |
213 | +#endif | | 228 | +#endif |
214 | XDrawImageString(xdpy->dpy, win, gc, 5, get_fontheight(fnt_fixed) + y, | | 229 | XDrawImageString(xdpy->dpy, win, gc, 5, get_fontheight(fnt_fixed) + y, |
215 | buf, strlen(buf)); | | 230 | buf, strlen(buf)); |