From 9f6db631d19d99a674235bbf968c6a0b11230952 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 24 Nov 2010 13:29:21 +0000 Subject: [PATCH] scst/sysfs: Bug fix - made sure that the proper LUN number is available in sysfs on big endian systems. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2815 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 37c618cca..1ffa9c6ef 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -2610,7 +2610,7 @@ int scst_acg_dev_sysfs_create(struct scst_acg_dev *acg_dev, TRACE_ENTRY(); res = kobject_init_and_add(&acg_dev->acg_dev_kobj, &acg_dev_ktype, - parent, "%u", acg_dev->lun); + parent, "%llu", acg_dev->lun); if (res != 0) { PRINT_ERROR("Can't add acg_dev %p to sysfs", acg_dev); goto out;