Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/hdaudio Use 0x prefix when printing hexadecimal ...



details:   https://anonhg.NetBSD.org/src/rev/b9719b69dde6
branches:  trunk
changeset: 795332:b9719b69dde6
user:      njoly <njoly%NetBSD.org@localhost>
date:      Mon Apr 07 21:35:41 2014 +0000

description:
Use 0x prefix when printing hexadecimal numbers.

diffstat:

 sys/dev/pci/hdaudio/hdaudio_ids.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 525d26e93c41 -r b9719b69dde6 sys/dev/pci/hdaudio/hdaudio_ids.c
--- a/sys/dev/pci/hdaudio/hdaudio_ids.c Mon Apr 07 21:20:17 2014 +0000
+++ b/sys/dev/pci/hdaudio/hdaudio_ids.c Mon Apr 07 21:35:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio_ids.c,v 1.7 2013/12/17 17:13:46 jakllsch Exp $ */
+/* $NetBSD: hdaudio_ids.c,v 1.8 2014/04/07 21:35:41 njoly Exp $ */
 
 /*
  * Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdaudio_ids.c,v 1.7 2013/12/17 17:13:46 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdaudio_ids.c,v 1.8 2014/04/07 21:35:41 njoly Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -267,7 +267,7 @@
        if (name)
                snprintf(buf, len - 1, "%s", name);
        else if (product == HDA_PRODUCT_ANY)
-               snprintf(buf, len - 1, "vendor %04x", vendor);
+               snprintf(buf, len - 1, "vendor 0x%04x", vendor);
        else
-               snprintf(buf, len - 1, "product %04x", product);
+               snprintf(buf, len - 1, "product 0x%04x", product);
 }



Home | Main Index | Thread Index | Old Index