Lines Matching defs:prefix
157 static char *prefix = MODULE_NAME":";
162 if(!b_log_file || b_no_port){ /* it's not a good idea to add prefix in private file */
163 strcpy(buf, prefix);
164 buf_ptr += strlen(prefix);
274 \param b_hlight: highlight command and prefix it with spec. charachter
277 traces SCSI commands into debug output target.can highlight and prefix the
286 char prefix[sizeof(hl_mask) + 6];
287 if(b_log_file){ /* compose CMD prefix */
288 sprintf(prefix, "%sCMD:", b_hlight ? "=>":"");
290 sprintf(prefix, hl_mask, b_hlight ? "33m=>":"32m");
292 usb_scsi_trace_bytes(prefix, cmd, len); /* append command bytes to log */
301 usb_scsi_trace_bytes(const char *prefix, const uint8 *bytes, size_t bytes_len)
305 char *pbuf = (char *)malloc(len * 3 + sizeof(truncTail) + strlen(prefix) + 1);
309 strcpy(p, prefix);
310 p += strlen(prefix);
325 void usb_scsi_trace_sgb(const char *prefix, sg_buffer *sgb)
329 size_t len = strlen(prefix) + strlen(sgbHead) + sgb->count * 9;
335 strcpy(p, prefix);