void __scsi_print_command(unsigned char *cdb) { int k, len; print_opcode_name(cdb, 0); len = scsi_command_size(cdb); /* print out all bytes in cdb */ for (k = 0; k < len; ++k) printk(" %02x", cdb[k]); printk("\n"); }
/* This function (perhaps with the addition of peripheral device type) * is more approriate than __scsi_print_command(). Perhaps that static * can be dropped later if it replaces the __scsi_print_command version. */ static void scsi_print_cdb(unsigned char *cdb, int cdb_len, int start_of_line) { int k; print_opcode_name(cdb, cdb_len, start_of_line); /* print out all bytes in cdb */ printk(":"); for (k = 0; k < cdb_len; ++k) printk(" %02x", cdb[k]); printk("\n"); }
void scsi_print_command(struct scsi_cmnd *cmd) { int k; scmd_printk(KERN_INFO, cmd, "CDB: "); print_opcode_name(cmd->cmnd, cmd->cmd_len); /* print out all bytes in cdb */ printk(":"); for (k = 0; k < cmd->cmd_len; ++k) printk(" %02x", cmd->cmnd[k]); printk("\n"); }
void __scsi_print_command(unsigned char *command) { int k, len; print_opcode_name(command, 0, 1); if (VARIABLE_LENGTH_CMD == command[0]) len = command[7] + 8; else len = COMMAND_SIZE(command[0]); /* print out all bytes in cdb */ for (k = 0; k < len; ++k) printk(" %02x", command[k]); printk("\n"); }
void scsi_print_command(struct scsi_cmnd *cmd) { int k; if (cmd->cmnd == NULL) return; scmd_printk(KERN_INFO, cmd, "CDB: "); print_opcode_name(cmd->cmnd, cmd->cmd_len); printk(":"); for (k = 0; k < cmd->cmd_len; ++k) printk(" %02x", cmd->cmnd[k]); printk("\n"); }
void scsi_print_command(struct scsi_cmnd *cmd) { int k; if (cmd->cmnd == NULL) return; ; print_opcode_name(cmd->cmnd, cmd->cmd_len); /* print out all bytes in cdb */ ; for (k = 0; k < cmd->cmd_len; ++k) ; ; }