]> Git Repo - J-linux.git/commitdiff
virt: sev-guest: Fix user-visible strings
authorNikunj A Dadhania <[email protected]>
Wed, 31 Jul 2024 15:07:54 +0000 (20:37 +0530)
committerBorislav Petkov (AMD) <[email protected]>
Tue, 27 Aug 2024 08:35:06 +0000 (10:35 +0200)
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]
drivers/virt/coco/sev-guest/sev-guest.c

index a72fe1e959c2a7bb90768f9700ad8738dc0af223..3b76cbf78f41fdccb7c29039dd05f41fb0ba2f9a 100644 (file)
@@ -114,7 +114,7 @@ static bool is_vmpck_empty(struct snp_guest_dev *snp_dev)
  */
 static void snp_disable_vmpck(struct snp_guest_dev *snp_dev)
 {
-       dev_alert(snp_dev->dev, "Disabling vmpck_id %d to prevent IV reuse.\n",
+       dev_alert(snp_dev->dev, "Disabling VMPCK%d communication key to prevent IV reuse.\n",
                  vmpck_id);
        memzero_explicit(snp_dev->vmpck, VMPCK_KEY_LEN);
        snp_dev->vmpck = NULL;
@@ -1117,13 +1117,13 @@ static int __init sev_guest_probe(struct platform_device *pdev)
        ret = -EINVAL;
        snp_dev->vmpck = get_vmpck(vmpck_id, secrets, &snp_dev->os_area_msg_seqno);
        if (!snp_dev->vmpck) {
-               dev_err(dev, "invalid vmpck id %d\n", vmpck_id);
+               dev_err(dev, "Invalid VMPCK%d communication key\n", vmpck_id);
                goto e_unmap;
        }
 
        /* Verify that VMPCK is not zero. */
        if (is_vmpck_empty(snp_dev)) {
-               dev_err(dev, "vmpck id %d is null\n", vmpck_id);
+               dev_err(dev, "Empty VMPCK%d communication key\n", vmpck_id);
                goto e_unmap;
        }
 
@@ -1174,7 +1174,7 @@ static int __init sev_guest_probe(struct platform_device *pdev)
        if (ret)
                goto e_free_cert_data;
 
-       dev_info(dev, "Initialized SEV guest driver (using vmpck_id %d)\n", vmpck_id);
+       dev_info(dev, "Initialized SEV guest driver (using VMPCK%d communication key)\n", vmpck_id);
        return 0;
 
 e_free_cert_data:
This page took 0.047329 seconds and 4 git commands to generate.