From 8577261b283ccc883f28ba1bd24eafbd7a24afe5 Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Thu, 17 Jan 2019 00:46:07 +0000 Subject: [PATCH] Add patch to quilt series for changes merged from plugwash/master branch. --- .../11-fix-screwups-in-64-bit-patch.patch | 61 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 62 insertions(+) create mode 100644 debian/patches/11-fix-screwups-in-64-bit-patch.patch diff --git a/debian/patches/11-fix-screwups-in-64-bit-patch.patch b/debian/patches/11-fix-screwups-in-64-bit-patch.patch new file mode 100644 index 0000000..be4e251 --- /dev/null +++ b/debian/patches/11-fix-screwups-in-64-bit-patch.patch @@ -0,0 +1,61 @@ +commit 4985f93f67f8ace4dab55d4413504a1c33ecc8ac +Author: Peter Michael Green +Date: Thu Jan 17 00:38:43 2019 +0000 + + Fix some screwups in 64-bit patch where PRIX64 was used where PRIXPTR should have been used. + +diff --git a/pigpio.c b/pigpio.c +index 3756765..3102e32 100644 +--- a/pigpio.c ++++ b/pigpio.c +@@ -7572,7 +7572,7 @@ static int initAllocDMAMem(void) + + close(fdPmap); + +- DBG(DBG_STARTUP, "dmaPMapBlk=%08"PRIXPTR" dmaIn=%08"PRIX64, ++ DBG(DBG_STARTUP, "dmaPMapBlk=%08"PRIXPTR" dmaIn=%08"PRIXPTR, + (uintptr_t)dmaPMapBlk, (uintptr_t)dmaIn); + } + else +@@ -7610,12 +7610,12 @@ static int initAllocDMAMem(void) + } + + DBG(DBG_STARTUP, +- "gpioReg=%08"PRIX64" pwmReg=%08"PRIX64" pcmReg=%08"PRIX64" clkReg=%08"PRIX64" auxReg=%08"PRIX64, ++ "gpioReg=%08"PRIXPTR" pwmReg=%08"PRIXPTR" pcmReg=%08"PRIXPTR" clkReg=%08"PRIXPTR" auxReg=%08"PRIXPTR, + (uintptr_t)gpioReg, (uintptr_t)pwmReg, + (uintptr_t)pcmReg, (uintptr_t)clkReg, (uintptr_t)auxReg); + + for (i=0; i= DBG_DMACBS) + { +@@ -10505,7 +10505,7 @@ int bbI2CZip( + int addr, flags, esc, setesc; + wfRx_t *w; + +- DBG(DBG_USER, "gpio=%d inBuf=%s outBuf=%08"PRIX64" len=%d", ++ DBG(DBG_USER, "gpio=%d inBuf=%s outBuf=%08"PRIXPTR" len=%d", + SDA, myBuf2Str(inLen, (char *)inBuf), (uintptr_t)outBuf, outLen); + + CHECK_INITED; +@@ -11304,7 +11304,7 @@ int eventSetFunc(unsigned event, eventFunc_t f) + + int eventSetFuncEx(unsigned event, eventFuncEx_t f, void *userdata) + { +- DBG(DBG_USER, "event=%d function=%08"PRIx64" userdata=%08"PRIx64, ++ DBG(DBG_USER, "event=%d function=%08"PRIxPTR" userdata=%08"PRIxPTR, + event, (uintptr_t)f, (uintptr_t)userdata); + + CHECK_INITED; +@@ -11406,7 +11406,7 @@ int gpioSetAlertFunc(unsigned gpio, gpioAlertFunc_t f) + + int gpioSetAlertFuncEx(unsigned gpio, gpioAlertFuncEx_t f, void *userdata) + { +- DBG(DBG_USER, "gpio=%d function=%08"PRIX64" userdata=%08"PRIX64, ++ DBG(DBG_USER, "gpio=%d function=%08"PRIXPTR" userdata=%08"PRIXPTR, + gpio, (uintptr_t)f, (uintptr_t)userdata); + + CHECK_INITED; diff --git a/debian/patches/series b/debian/patches/series index ec38378..1eb0964 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -7,4 +7,5 @@ 08-dont-install-libs-as-manpages.patch 09-filelayout.patch 10-use-pthread-for-shared-libs.patch +11-fix-screwups-in-64-bit-patch.patch remove-broken-comments-from-top-of-manpa.patch -- 2.30.2