Searched refs:buf (Results 1 - 6 of 6) sorted by relevance

/k10sensor/src/
H A Dcommon.c611 #define PRINT_YORN(buf, what, val) \
612 sprintf((buf), FORMAT, (what), (val) ? "yes" : "no");
613 #define PRINT_ENABLED(buf, what, val) \
614 sprintf((buf), FORMAT, (what), (val) ? "enabled" : "disabled");
615 #define PRINT_ENABLED_NA(buf, what, val) \
616 sprintf((buf), FORMAT, (what), (val) ? "enabled" : "n/a");
617 #define PRINT_VAL(buf, what, val) \
619 sprintf((buf), FORMAT, (what), "n/a"); \
624 sprintf((buf), FORMAT_N, (what), x/10, (x < 0 ? -x : x)%10); \
631 * @param buf wher
636 dumpCpuInfo(char *buf, cpu_vars_t *v) argument
707 dumpTctrl(char *buf, PCI_HDL pci_hdl, cpu_vars_t *v) argument
[all...]
H A Dk10sensor_info.c87 char buf[1024]; local
141 str = dumpCpuInfo(buf, cv);
144 fprintf(stdout, "%s\n", buf);
176 static char buf[1024]; local
181 sprintf(buf, "Unable to open file %s", fname);
182 perror(buf);
191 dumpCpuInfo(buf, v);
197 strcat(buf, "\n");
199 sprintf(buf + strlen(buf), "
[all...]
H A Dk10s_kstats.c89 char buf[KSTAT_STRLEN]; local
96 sprintf(buf, K10S_KSTAT_INFO_NAME" %d", v->chipId);
97 ksp = kstat_create(KMODNAME, v->chipId, buf, K10S_KSTAT_CLASS,
143 sprintf(buf, K10S_KSTAT_DATA_NAME_FMT2, v->chipId, 0);
144 ksp = kstat_create(KMODNAME, v->chipId, buf, K10S_KSTAT_CLASS,
155 sprintf(buf, K10S_KSTAT_DATA_NAME_FMT2, v->chipId, 1);
156 ksp = kstat_create(KMODNAME, v->chipId, buf, K10S_KSTAT_CLASS,
168 sprintf(buf, K10S_KSTAT_DATA_NAME_FMT, v->chipId);
169 ksp = kstat_create(KMODNAME, v->chipId, buf, K10S_KSTAT_CLASS,
H A Dpciinspect.c39 char buf[40] = "ffff-ffff-ffff-ffff-ffff-ffff-ffff-ffff"; local
42 buf[i--] = '\0';
44 buf[i] = '0' + (val & 1L);
46 buf[--i] = '.';
50 sprintf(res,"%10u = 0x%08x = %s", save, save, buf);
127 char buf[80], buf2[80]; local
135 token = fgets(buf, 80, stdin);
139 token = strtok(buf, ws);
207 char buf[80]; local
H A Dk10sensor.h144 /** Append v data as a human readable string to buf */
145 char *dumpCpuInfo(char *buf, cpu_vars_t *v);
146 /** Append T control value(s) as a human readable string to buf */
147 char *dumpTctrl(char *buf, PCI_HDL pci_hdl, cpu_vars_t *v);
H A Dk10sensor.c390 char buf[1024]; /* 19 lines a ~40 chars == 760 */ local
401 str = dumpCpuInfo(buf, k10p->v);
405 blen = strlen(buf);
415 return (uiomove((void *)(buf + uiop->uio_offset), len, UIO_READ, uiop));

Completed in 9 milliseconds