Skip to content

Commit 5f7c38f

Browse files
nikunjadbp3tk0v
authored andcommitted
virt: sev-guest: Fix user-visible strings
User-visible abbreviations should be in capitals, ensure messages are readable and clear. No functional change. Signed-off-by: Nikunj A Dadhania <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a1bbb22 commit 5f7c38f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/virt/coco/sev-guest/sev-guest.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static bool is_vmpck_empty(struct snp_guest_dev *snp_dev)
114114
*/
115115
static void snp_disable_vmpck(struct snp_guest_dev *snp_dev)
116116
{
117-
dev_alert(snp_dev->dev, "Disabling vmpck_id %d to prevent IV reuse.\n",
117+
dev_alert(snp_dev->dev, "Disabling VMPCK%d communication key to prevent IV reuse.\n",
118118
vmpck_id);
119119
memzero_explicit(snp_dev->vmpck, VMPCK_KEY_LEN);
120120
snp_dev->vmpck = NULL;
@@ -1117,13 +1117,13 @@ static int __init sev_guest_probe(struct platform_device *pdev)
11171117
ret = -EINVAL;
11181118
snp_dev->vmpck = get_vmpck(vmpck_id, secrets, &snp_dev->os_area_msg_seqno);
11191119
if (!snp_dev->vmpck) {
1120-
dev_err(dev, "invalid vmpck id %d\n", vmpck_id);
1120+
dev_err(dev, "Invalid VMPCK%d communication key\n", vmpck_id);
11211121
goto e_unmap;
11221122
}
11231123

11241124
/* Verify that VMPCK is not zero. */
11251125
if (is_vmpck_empty(snp_dev)) {
1126-
dev_err(dev, "vmpck id %d is null\n", vmpck_id);
1126+
dev_err(dev, "Empty VMPCK%d communication key\n", vmpck_id);
11271127
goto e_unmap;
11281128
}
11291129

@@ -1174,7 +1174,7 @@ static int __init sev_guest_probe(struct platform_device *pdev)
11741174
if (ret)
11751175
goto e_free_cert_data;
11761176

1177-
dev_info(dev, "Initialized SEV guest driver (using vmpck_id %d)\n", vmpck_id);
1177+
dev_info(dev, "Initialized SEV guest driver (using VMPCK%d communication key)\n", vmpck_id);
11781178
return 0;
11791179

11801180
e_free_cert_data:

0 commit comments

Comments
 (0)