summaryrefslogtreecommitdiff
path: root/drivers/crypto/qat/qat_c3xxx
diff options
context:
space:
mode:
authorPablo Marcos Oltra <pablo.marcos.oltra@intel.com>2016-12-22 15:00:34 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2016-12-30 19:52:34 +0800
commit21aad0b6ca4d203b2486dfbf97921a2ecd768bcc (patch)
tree5ca20e03a50dee597a86da1def7285a0533ddc74 /drivers/crypto/qat/qat_c3xxx
parent841d6d10b38a2508c640ce7784bad825e2d76fe8 (diff)
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_c3xxx')
-rw-r--r--drivers/crypto/qat/qat_c3xxx/adf_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_c3xxx/adf_drv.c b/drivers/crypto/qat/qat_c3xxx/adf_drv.c
index 640c3fc870fd..f172171668ee 100644
--- a/drivers/crypto/qat/qat_c3xxx/adf_drv.c
+++ b/drivers/crypto/qat/qat_c3xxx/adf_drv.c
@@ -186,7 +186,7 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
}
/* 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));