summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormananth <mananth>2003-12-05 04:31:30 +0000
committermananth <mananth>2003-12-05 04:31:30 +0000
commit0e8e83bce5c375ca3739462bfd6ac61611492511 (patch)
treef953021df50a2768300ce22f840431bddc632d9c
parent014f2918382deb049aae2b07b1828575a79a1956 (diff)
downloadsysfsutils-0e8e83bce5c375ca3739462bfd6ac61611492511.tar.gz
Correct get_device.c for change in sysfs_get_device_by_id()
-rw-r--r--ChangeLog3
-rw-r--r--test/get_device.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 57914de..7c27d69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
+12/05/2003 - Daniel Stekloff <dsteklof@us.ibm.com>
+ * Remove unused argument from sysfs_get_device_by_id()
+
12/02/2003 - Ananth Mavinakayanahalli <ananth@in.ibm.com>
* Simplified routine to get bus a device is on
diff --git a/test/get_device.c b/test/get_device.c
index 9d13d9f..a04f31e 100644
--- a/test/get_device.c
+++ b/test/get_device.c
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
return 1;
}
- device = sysfs_open_device_by_id(argv[2], argv[1], strlen(argv[1]));
+ device = sysfs_open_device_by_id(argv[2], argv[1]);
if (device == NULL) {
fprintf(stdout, "Device %s not found on bus %s\n",
argv[2], argv[1]);