Skip to content

Commit

Permalink
ALSA: pcm: use friendly name for id of PCM substream in trace print
Browse files Browse the repository at this point in the history
Use the same print format of snd_pcm_debug_name() for userspace tracing
program.

Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Sakamoto authored and Takashi Iwai committed Jun 9, 2017
1 parent 7b8a54a commit 6baca01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/core/pcm_param_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ TRACE_EVENT(hw_mask_param,
memcpy(__entry->prev_bits, prev->bits, sizeof(__u32) * 8);
memcpy(__entry->curr_bits, curr->bits, sizeof(__u32) * 8);
),
TP_printk("%d,%d,%d,%d %03d/%03d %s %08x%08x%08x%08x %08x%08x%08x%08x",
TP_printk("pcmC%dD%d%s:%d %03d/%03d %s %08x%08x%08x%08x %08x%08x%08x%08x",
__entry->card,
__entry->device,
__entry->direction ? "c" : "p",
__entry->subdevice,
__entry->direction,
__entry->index,
__entry->total,
__print_symbolic(__entry->type, hw_param_labels),
Expand Down Expand Up @@ -109,11 +109,11 @@ TRACE_EVENT(hw_interval_param,
__entry->curr_integer = curr->integer;
__entry->curr_empty = curr->empty;
),
TP_printk("%d,%d,%d,%d %03d/%03d %s %d %d %s%u %u%s %d %d %s%u %u%s",
TP_printk("pcmC%dD%d%s:%d %03d/%03d %s %d %d %s%u %u%s %d %d %s%u %u%s",
__entry->card,
__entry->device,
__entry->direction ? "c" : "p",
__entry->subdevice,
__entry->direction,
__entry->index,
__entry->total,
__print_symbolic(__entry->type, hw_param_labels),
Expand Down

0 comments on commit 6baca01

Please sign in to comment.