Skip to contentSkip to conversation

offsetof is size_t

PATCH New Al Viro 1 participant 1 message Feb 9, 2007 Linux for power macintosh

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 offsetof is size_t

---
 drivers/macintosh/rack-meter.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/macintosh/rack-meter.c +3 -3
index 5ed41fe..f83fad2 100644
@@ -171,11 +171,11 @@ static void rackmeter_setup_dbdma(struct rackmeter *rm)
 	/* Make sure dbdma is reset */
 	DBDMA_DO_RESET(rm->dma_regs);
 
-	pr_debug("rackmeter: mark offset=0x%lx\n",
+	pr_debug("rackmeter: mark offset=0x%zx\n",
 		 offsetof(struct rackmeter_dma, mark));
-	pr_debug("rackmeter: buf1 offset=0x%lx\n",
+	pr_debug("rackmeter: buf1 offset=0x%zx\n",
 		 offsetof(struct rackmeter_dma, buf1));
-	pr_debug("rackmeter: buf2 offset=0x%lx\n",
+	pr_debug("rackmeter: buf2 offset=0x%zx\n",
 		 offsetof(struct rackmeter_dma, buf2));
 
 	/* Prepare 4 dbdma commands for the 2 buffers */
Signature · 1 line
1.5.0-rc2.GIT