This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / usb / misc / rio500.c
index 6a6e3de..e90a334 100644 (file)
@@ -170,11 +170,13 @@ ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,
                        if (result == -ETIMEDOUT)
                                retries--;
                        else if (result < 0) {
-                               err("Error executing ioctrl. code = %d", result);
+                               err("Error executing ioctrl. code = %d",
+                                    le32_to_cpu(result));
                                retries = 0;
                        } else {
-                               dbg("Executed ioctl. Result = %d (data=%02x)",
-                                    result, buffer[0]);
+                               dbg("Executed ioctl. Result = %d (data=%04x)",
+                                    le32_to_cpu(result),
+                                    le32_to_cpu(*((long *) buffer)));
                                if (copy_to_user(rio_cmd.buffer, buffer,
                                                 rio_cmd.length)) {
                                        free_page((unsigned long) buffer);
@@ -237,10 +239,12 @@ ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,
                        if (result == -ETIMEDOUT)
                                retries--;
                        else if (result < 0) {
-                               err("Error executing ioctrl. code = %d", result);
+                               err("Error executing ioctrl. code = %d",
+                                    le32_to_cpu(result));
                                retries = 0;
                        } else {
-                               dbg("Executed ioctl. Result = %d", result);
+                               dbg("Executed ioctl. Result = %d",
+                                      le32_to_cpu(result));
                                retries = 0;
 
                        }