We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91bcea4 commit 5317797Copy full SHA for 5317797
drivers/video/hdmi.c
@@ -1310,17 +1310,11 @@ static void hdmi_spd_infoframe_log(const char *level,
1310
struct device *dev,
1311
const struct hdmi_spd_infoframe *frame)
1312
{
1313
- u8 buf[17];
1314
-
1315
hdmi_infoframe_log_header(level, dev,
1316
(const struct hdmi_any_infoframe *)frame);
1317
1318
- memset(buf, 0, sizeof(buf));
1319
1320
- strncpy(buf, frame->vendor, 8);
1321
- hdmi_log(" vendor: %s\n", buf);
1322
- strncpy(buf, frame->product, 16);
1323
- hdmi_log(" product: %s\n", buf);
+ hdmi_log(" vendor: %.8s\n", frame->vendor);
+ hdmi_log(" product: %.16s\n", frame->product);
1324
hdmi_log(" source device information: %s (0x%x)\n",
1325
hdmi_spd_sdi_get_name(frame->sdi), frame->sdi);
1326
}
0 commit comments