diff options
author | Pablo Marcos Oltra <pablo.marcos.oltra@intel.com> | 2016-12-22 18:00:34 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-12-30 14:52:34 +0300 |
commit | 21aad0b6ca4d203b2486dfbf97921a2ecd768bcc (patch) | |
tree | 5ca20e03a50dee597a86da1def7285a0533ddc74 /drivers/crypto/qat/qat_c3xxxvf/adf_drv.c | |
parent | 841d6d10b38a2508c640ce7784bad825e2d76fe8 (diff) | |
download | linux-21aad0b6ca4d203b2486dfbf97921a2ecd768bcc.tar.xz |
crypto: qat - modify format of dev top level debugfs entries
Remove leading zeros in pci function number to be consistent
with output from lspci.
Signed-off-by: Pablo Marcos Oltra <pablo.marcos.oltra@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_c3xxxvf/adf_drv.c')
-rw-r--r-- | drivers/crypto/qat/qat_c3xxxvf/adf_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_c3xxxvf/adf_drv.c b/drivers/crypto/qat/qat_c3xxxvf/adf_drv.c index 949d77b79fbe..24ec908eb26c 100644 --- a/drivers/crypto/qat/qat_c3xxxvf/adf_drv.c +++ b/drivers/crypto/qat/qat_c3xxxvf/adf_drv.c @@ -170,7 +170,7 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) accel_pci_dev->sku = hw_data->get_sku(hw_data); /* Create dev top level debugfs entry */ - snprintf(name, sizeof(name), "%s%s_%02x:%02d.%02d", + snprintf(name, sizeof(name), "%s%s_%02x:%02d.%d", ADF_DEVICE_NAME_PREFIX, hw_data->dev_class->name, pdev->bus->number, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); |