summaryrefslogtreecommitdiff
path: root/test/sample.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-01-29 15:58:48 +0100
committerArjun Roy <arroy@redhat.com>2010-02-03 12:01:24 -0800
commit99d183adcde7b5b9e7d89f66620c3edb8bf483dd (patch)
treeda37350b52c14513ed8d710dbe2679b6fe777099 /test/sample.c
parent1ea13017026265f4baafe7c0853002f24b677808 (diff)
avoid FP unused "osname" warning
* test/sample.c (main): Print "osname", so that variable does not appear to be unused.
Diffstat (limited to 'test/sample.c')
-rw-r--r--test/sample.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sample.c b/test/sample.c
index f6b1133..11ed2a3 100644
--- a/test/sample.c
+++ b/test/sample.c
@@ -119,6 +119,7 @@ int main(int argc, char** argv)
printf("Couldn't get property!\n");
exit(1);
}
+ printf ("osname: %s\n", osname);
osi_device_list_t audio_devices = osi_os_devices(os, "audio", NULL, &err);
num = osi_devices_list_length(audio_devices);
@@ -128,7 +129,7 @@ int main(int argc, char** argv)
for (j = 0; j < num; j++) {
osi_device_t device = osi_get_device_by_index(audio_devices, j, &err);
printf("Audio device for %s:\n", os_id);
- printf("\tBus Type: %s Vendor: %s Product: %s\n",
+ printf("\tBus Type: %s Vendor: %s Product: %s\n",
osi_get_device_property_value(device, "bus-type", &err),
osi_get_device_property_value(device, "vendor", &err),
osi_get_device_property_value(device, "product", &err));
@@ -164,4 +165,4 @@ int main(int argc, char** argv)
printf("Done.\n");
return 0;
-} \ No newline at end of file
+}