lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMGffEmrHRJjRLiMAsq0K43JcN571Es9xg=wtr=CO-j1ts_SRA@mail.gmail.com>
Date:   Thu, 13 Apr 2023 09:11:58 +0200
From:   Jinpu Wang <jinpu.wang@...os.com>
To:     Pranav Prasad <pranavpp@...gle.com>
Cc:     Jack Wang <jinpu.wang@...ud.ionos.com>,
        "James E . J . Bottomley" <jejb@...ux.ibm.com>,
        "Martin K . Petersen" <martin.petersen@...cle.com>,
        linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
        Akshat Jain <akshatzen@...gle.com>
Subject: Re: [PATCH] scsi: pm80xx: Log device registration

On Wed, Apr 12, 2023 at 1:09 AM Pranav Prasad <pranavpp@...gle.com> wrote:
>
> From: Akshat Jain <akshatzen@...gle.com>
>
> Log combination of phy_id and device_id in device registration
> response.
>
> Signed-off-by: Akshat Jain <akshatzen@...gle.com>
> Signed-off-by: Pranav Prasad <pranavpp@...gle.com>
Acked-by: Jack Wang <jinpu.wang@...os.com>
> ---
>  drivers/scsi/pm8001/pm8001_hwi.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c
> index ec1a9ab61814..73cd25f30ca5 100644
> --- a/drivers/scsi/pm8001/pm8001_hwi.c
> +++ b/drivers/scsi/pm8001/pm8001_hwi.c
> @@ -3362,8 +3362,9 @@ int pm8001_mpi_reg_resp(struct pm8001_hba_info *pm8001_ha, void *piomb)
>         pm8001_dev = ccb->device;
>         status = le32_to_cpu(registerRespPayload->status);
>         device_id = le32_to_cpu(registerRespPayload->device_id);
> -       pm8001_dbg(pm8001_ha, MSG, " register device is status = %d\n",
> -                  status);
> +       pm8001_dbg(pm8001_ha, INIT,
> +                  "register device status %d phy_id 0x%x device_id %d\n",
> +                  status, pm8001_dev->attached_phy, device_id);
>         switch (status) {
>         case DEVREG_SUCCESS:
>                 pm8001_dbg(pm8001_ha, MSG, "DEVREG_SUCCESS\n");
> @@ -4278,7 +4279,7 @@ int pm8001_chip_dereg_dev_req(struct pm8001_hba_info *pm8001_ha,
>         memset(&payload, 0, sizeof(payload));
>         payload.tag = cpu_to_le32(1);
>         payload.device_id = cpu_to_le32(device_id);
> -       pm8001_dbg(pm8001_ha, MSG, "unregister device device_id = %d\n",
> +       pm8001_dbg(pm8001_ha, INIT, "unregister device device_id %d\n",
>                    device_id);
>
>         return pm8001_mpi_build_cmd(pm8001_ha, 0, opc, &payload,
> --
> 2.40.0.577.gac1e443424-goog
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ