Minor 64bit improvements (use %zu when formatting size_t values in printk)
authorMartin Troxler <ch1010277@ch10pc446>
Mon, 29 Nov 2010 08:18:11 +0100
changeset 2006 e69a5bb5cb48
parent 2005 02580c044c32
child 2007 5da31ecf3a87
Minor 64bit improvements (use %zu when formatting size_t values in printk)
master/master.c
--- a/master/master.c	Mon Nov 29 08:15:57 2010 +0100
+++ b/master/master.c	Mon Nov 29 08:18:11 2010 +0100
@@ -933,7 +933,7 @@
                         unsigned int frame_offset = domain_fmmu->logical_start_address-datagram_address;
                         memcpy(frame_datagram_data+frame_offset, domain_data, domain_fmmu->data_size);
                         if (unlikely(master->debug_level > 1)) {
-                            EC_DBG("sending dg 0x%02X fmmu %u fp=%u dp=%u size=%u\n",
+							EC_DBG("sending dg 0x%02X fmmu %u fp=%u dp=%zu size=%u\n",
                                    datagram->index, i,frame_offset,domain_data-datagram->data,domain_fmmu->data_size);
                             ec_print_data(domain_data, domain_fmmu->data_size);
                         }
@@ -1109,7 +1109,7 @@
                     unsigned int frame_offset = domain_fmmu->logical_start_address-datagram_address;
                     memcpy(domain_data, frame_datagram_data+frame_offset, domain_fmmu->data_size);
                     if (unlikely(master->debug_level > 1)) {
-                        EC_DBG("receiving dg 0x%02X fmmu %u fp=%u dp=%u size=%u\n",
+						EC_DBG("receiving dg 0x%02X fmmu %u fp=%u dp=%zu size=%u\n",
                                datagram->index, i,frame_offset,domain_data-datagram->data,domain_fmmu->data_size);
                         ec_print_data(domain_data, domain_fmmu->data_size);
                     }