OSDN Git Service

kinfocenter: fix build on x86_64
authorIvailo Monev <xakepa10@gmail.com>
Fri, 3 Jun 2016 22:23:32 +0000 (22:23 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 3 Jun 2016 22:23:32 +0000 (22:23 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kinfocenter/Modules/view1394/view1394.cpp

index 936e92e..ee2e372 100644 (file)
@@ -231,7 +231,11 @@ void View1394::rescanBus() {
                        else {
                                QString guidStr;
                                char buf[32];
+#ifdef __x86_64__
+                               snprintf(buf, 32, "%lX", guid);
+#else
                                snprintf(buf, 32, "%llX", guid);
+#endif
                                guidStr=buf;
                                guidStr="0x"+guidStr.rightJustified(16, '0');
                                QString local=((j | 0xffc0) == localNodeId) ? "X" : "";