Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 290890df authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Kalle Valo
Browse files

hostap: use %*ph to print small buffer



Use %*ph format to print small buffer as hex string.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 4c3e4879
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -407,10 +407,8 @@ static int prism2_enable_genesis(local_info_t *local, int hcr)
		       hcr);
		       hcr);
		return 0;
		return 0;
	} else {
	} else {
		printk(KERN_DEBUG "Readback test failed, HCR 0x%02x "
		printk(KERN_DEBUG "Readback test failed, HCR 0x%02x write %4ph read %4ph\n",
		       "write %02x %02x %02x %02x read %02x %02x %02x %02x\n",
		       hcr, initseq, readbuf);
		       hcr, initseq[0], initseq[1], initseq[2], initseq[3],
		       readbuf[0], readbuf[1], readbuf[2], readbuf[3]);
		return 1;
		return 1;
	}
	}
}
}
+1 −2
Original line number Original line Diff line number Diff line
@@ -352,8 +352,7 @@ static int prism2_plx_check_cis(void __iomem *attr_mem, int attr_len,
	/* read CIS; it is in even offsets in the beginning of attr_mem */
	/* read CIS; it is in even offsets in the beginning of attr_mem */
	for (i = 0; i < CIS_MAX_LEN; i++)
	for (i = 0; i < CIS_MAX_LEN; i++)
		cis[i] = readb(attr_mem + 2 * i);
		cis[i] = readb(attr_mem + 2 * i);
	printk(KERN_DEBUG "%s: CIS: %02x %02x %02x %02x %02x %02x ...\n",
	printk(KERN_DEBUG "%s: CIS: %6ph ...\n", dev_info, cis);
	       dev_info, cis[0], cis[1], cis[2], cis[3], cis[4], cis[5]);


	/* set reasonable defaults for Prism2 cards just in case CIS parsing
	/* set reasonable defaults for Prism2 cards just in case CIS parsing
	 * fails */
	 * fails */