Lines Matching refs:buf

105 	char buf[128];  in ksensor_test_attach()  local
120 (void) snprintf(buf, sizeof (buf), "test.temp.%d.1", in ksensor_test_attach()
122 if ((ret = ksensor_create(dip, &ksensor_test_temp_ops, NULL, buf, in ksensor_test_attach()
124 dev_err(dip, CE_WARN, "failed to attatch sensor %s: %d", buf, in ksensor_test_attach()
129 (void) snprintf(buf, sizeof (buf), "test.temp.%d.2", in ksensor_test_attach()
131 if ((ret = ksensor_create(dip, &ksensor_test_temp_ops, NULL, buf, in ksensor_test_attach()
133 dev_err(dip, CE_WARN, "failed to attatch sensor %s: %d", buf, in ksensor_test_attach()
138 (void) snprintf(buf, sizeof (buf), "test.temp.%d.3", in ksensor_test_attach()
140 if ((ret = ksensor_create(dip, &ksensor_test_temp_ops, NULL, buf, in ksensor_test_attach()
142 dev_err(dip, CE_WARN, "failed to attach sensor %s: %d", buf, in ksensor_test_attach()
147 (void) snprintf(buf, sizeof (buf), "test.temp.%d.4", in ksensor_test_attach()
149 if ((ret = ksensor_create(dip, &ksensor_test_temp_ops, NULL, buf, in ksensor_test_attach()
151 dev_err(dip, CE_WARN, "failed to attach sensor %s: %d", buf, in ksensor_test_attach()
156 (void) snprintf(buf, sizeof (buf), "test.eio.%d", in ksensor_test_attach()
158 if ((ret = ksensor_create(dip, &ksensor_test_eio_ops, NULL, buf, in ksensor_test_attach()
160 dev_err(dip, CE_WARN, "failed to attach sensor %s: %d", buf, in ksensor_test_attach()
165 (void) snprintf(buf, sizeof (buf), "test.volt.%d.1", in ksensor_test_attach()
167 if ((ret = ksensor_create(dip, &ksensor_test_volt_ops, NULL, buf, in ksensor_test_attach()
169 dev_err(dip, CE_WARN, "failed to attach sensor %s: %d", buf, in ksensor_test_attach()
174 (void) snprintf(buf, sizeof (buf), "test.current.%d.1", in ksensor_test_attach()
176 if ((ret = ksensor_create(dip, &ksensor_test_current_ops, NULL, buf, in ksensor_test_attach()
178 dev_err(dip, CE_WARN, "failed to attach sensor %s: %d", buf, in ksensor_test_attach()