summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_c62x
diff options
context:
space:
mode:
authorPablo Marcos Oltra <pablo.marcos.oltra@intel.com>2016-12-22 16:00:34 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-12-30 12:52:34 +0100
commit21aad0b6ca4d203b2486dfbf97921a2ecd768bcc (patch)
tree5ca20e03a50dee597a86da1def7285a0533ddc74 /drivers/crypto/qat/qat_c62x
parentcrypto: qat - zero esram only for DH85x devices (diff)
downloadlinux-21aad0b6ca4d203b2486dfbf97921a2ecd768bcc.tar.xz
linux-21aad0b6ca4d203b2486dfbf97921a2ecd768bcc.zip
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_c62x')
-rw-r--r--drivers/crypto/qat/qat_c62x/adf_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_c62x/adf_drv.c b/drivers/crypto/qat/qat_c62x/adf_drv.c
index 5b2d78a5b5aa..58a984c9c3ec 100644
--- a/drivers/crypto/qat/qat_c62x/adf_drv.c
+++ b/drivers/crypto/qat/qat_c62x/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));