Skip to contentSkip to conversation

trivial: sound seq ioctl dbg: print hexadecimal value padded with 0s

PATCH In review Thadeu Lima de Souza Cascardo 2 participants 2 messages Feb 1, 2010 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial: sound seq ioctl dbg: print hexadecimal value padded with 0s

Instead of padding with blanks and printing "number=0x a", print "number=0x0a".

---
 sound/core/seq/seq_clientmgr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/core/seq/seq_clientmgr.c +1 -1
index 8ca2be3..48eca9f 100644
@@ -2190,7 +2190,7 @@ static int snd_seq_do_ioctl(struct snd_seq_client *client, unsigned int cmd,
 		if (p->cmd == cmd)
 			return p->func(client, arg);
 	}
-	snd_printd("seq unknown ioctl() 0x%x (type='%c', number=0x%2x)\n",
+	snd_printd("seq unknown ioctl() 0x%x (type='%c', number=0x%02x)\n",
 		   cmd, _IOC_TYPE(cmd), _IOC_NR(cmd));
 	return -ENOTTY;
 }
Signature · 1 line
1.6.6.1
#1 lore raw

At Mon, 1 Feb 2010 16:17:01 -0200,

Quoted 5 lines · Thadeu Lima de Souza Cascardo

Instead of padding with blanks and printing "number=0x a", print "number=0x0a".

Applied now. Thanks.

Takashi

Quoted 20 lines
---
 sound/core/seq/seq_clientmgr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/core/seq/seq_clientmgr.c +1 -1
index 8ca2be3..48eca9f 100644
@@ -2190,7 +2190,7 @@ static int snd_seq_do_ioctl(struct snd_seq_client *client, unsigned int cmd,
 		if (p->cmd == cmd)
 			return p->func(client, arg);
 	}
-	snd_printd("seq unknown ioctl() 0x%x (type='%c', number=0x%2x)\n",
+	snd_printd("seq unknown ioctl() 0x%x (type='%c', number=0x%02x)\n",
 		   cmd, _IOC_TYPE(cmd), _IOC_NR(cmd));
 	return -ENOTTY;
 }
Signature · 1 line
1.6.6.1