iforce_send_packet(iforce, FF_CMD_MAGNITUDE, data);
 
-       iforce_dump_packet("magnitude: ", FF_CMD_MAGNITUDE, data);
+       iforce_dump_packet(iforce, "magnitude", FF_CMD_MAGNITUDE, data);
        return 0;
 }
 
        data[9] = (100 * lsat) >> 16;
 
        iforce_send_packet(iforce, FF_CMD_CONDITION, data);
-       iforce_dump_packet("condition", FF_CMD_CONDITION, data);
+       iforce_dump_packet(iforce, "condition", FF_CMD_CONDITION, data);
 
        return 0;
 }
 
 
        for (i = 0; c[i]; i++)
                if (!iforce_get_id_packet(iforce, c + i))
-                       iforce_dump_packet("info", iforce->ecmd, iforce->edata);
+                       iforce_dump_packet(iforce, "info", iforce->ecmd, iforce->edata);
 
 /*
  * Disable spring, enable force feedback.
 
 } iforce_hat_to_axis[16] = {{ 0,-1}, { 1,-1}, { 1, 0}, { 1, 1}, { 0, 1}, {-1, 1}, {-1, 0}, {-1,-1}};
 
 
-void iforce_dump_packet(char *msg, u16 cmd, unsigned char *data)
+void iforce_dump_packet(struct iforce *iforce, char *msg, u16 cmd, unsigned char *data)
 {
-       int i;
-
-       printk(KERN_DEBUG __FILE__ ": %s cmd = %04x, data = ", msg, cmd);
-       for (i = 0; i < LO(cmd); i++)
-               printk("%02x ", data[i]);
-       printk("\n");
+       dev_dbg(iforce->dev->dev.parent, "%s %s cmd = %04x, data = %*ph\n",
+               __func__, msg, cmd, LO(cmd), data);
 }
 
 /*
 
 int iforce_control_playback(struct iforce*, u16 id, unsigned int);
 void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data);
 int iforce_send_packet(struct iforce *iforce, u16 cmd, unsigned char* data);
-void iforce_dump_packet(char *msg, u16 cmd, unsigned char *data) ;
+void iforce_dump_packet(struct iforce *iforce, char *msg, u16 cmd, unsigned char *data);
 int iforce_get_id_packet(struct iforce *iforce, char *packet);
 
 /* iforce-ff.c */