       }
       else {
         if(l!=bytes) {
-          lprintf(zm,LOG_WARNING,"Incomplete download (%"PRId64" bytes received, expected %"PRId64")"
+          lprintf(zm,LOG_WARNING,"Incomplete download (%lld"" bytes received, expected %lld"")"
             ,l,bytes);
         } else {
           if((t=time(NULL)-zm->transfer_start_time)<=0)

      zm->current_file_size = pos;

    if(zm->max_file_size!=0 && pos >= zm->max_file_size) {
      lprintf(zm,LOG_WARNING,"Specified maximum file size (%"PRId64" bytes) reached at offset %"PRId64
        ,zm->max_file_size, pos);
      zmodem_send_pos_header(zm, ZFERR, (uint32_t)pos, /* Hex? */ TRUE);
      break;


    if(type == ZSKIP) {
      zm->file_skipped=TRUE;
      lprintf(zm,LOG_WARNING,"File skipped by receiver at offset: %llu", pos + sent_bytes);
      /* ZOC sends a ZRINIT after mid-file ZSKIP, so consume the ZRINIT here */
      zmodem_recv_header(zm);
      return(TRUE);
