···3838 If the device knows the time, but not the timezone
3939 eg: #TZ/UNKNOWN
40404141-<IDENTIFICATION STRING> should be replaced by the name/model of the hardware device
4141+<IDENTIFICATION STRING> should be replaced by the name/model of the hardware device
4242 and the revision of the software producing the log file.
43434444After the header lines, simply append one line of text for every song
···6060(listened to enter sandman, skipped cowboys, listened to the pusher) :
6161 #AUDIOSCROBBLER/1.0
6262 #TZ/UTC
6363- #CLIENT/Rockbox h3xx 1.1
6363+ #CLIENT/Rockbox h3xx 1.1
6464 Metallica Metallica Enter Sandman 1 365 L 1143374412 62c2e20a?-559e-422f-a44c-9afa7882f0c4?
6565 Portishead Roseland NYC Live Cowboys 2 312 S 1143374777 db45ed76-f5bf-430f-a19f-fbe3cd1c77d3
6666 Steppenwolf Live The Pusher 12 350 L 1143374779 58ddd581-0fcc-45ed-9352-25255bf80bfb?
···332332333333 if (gCache.size < reqsz)
334334 {
335335- logf("SCROBBLER: OOM , %ld < req:%ld", gCache.size, reqsz);
335335+ logf("SCROBBLER: OOM , %ld < req:%zu", gCache.size, reqsz);
336336 return -1;
337337 }
338338 gCache.force_flush = true;
···381381 /* Found in MRU */
382382 if ((i.hash1 == hash1) && (i.hash2 == hash2))
383383 {
384384- logf("SCROBBLER: hash [%x, %x] found in MRU @ %d", i.hash1, i.hash2, mru);
384384+ logf("SCROBBLER: hash [%lx, %lx] found in MRU @ %d", i.hash1, i.hash2, mru);
385385 goto Found;
386386 }
387387 }
···395395 }
396396 else
397397 {
398398- logf("SCROBBLER: hash [%x, %x] evicted from MRU", i.hash1, i.hash2);
398398+ logf("SCROBBLER: hash [%lx, %lx] evicted from MRU", i.hash1, i.hash2);
399399 }
400400401401 i = (struct hash64){.hash1 = hash1, .hash2 = hash2};
402402- logf("SCROBBLER: hash [%x, %x] added to MRU[%d]", i.hash1, i.hash2, mru_len);
402402+ logf("SCROBBLER: hash [%lx, %lx] added to MRU[%d]", i.hash1, i.hash2, mru_len);
403403404404Found:
405405···475475476476 for (i = 0; i < entries && pos < used; i++)
477477 {
478478- logf("SCROBBLER: write %d read pos [%ld]", i, pos);
478478+ logf("SCROBBLER: write %d read pos [%zu]", i, pos);
479479480480 struct cache_entry *entry = (struct cache_entry*)&gCache.buf[pos];
481481···484484 prev_crc = crc;
485485486486 len = rb->strlen(entry->buf);
487487- logf("SCROBBLER: write entry %d sz [%ld] len [%ld]", i, entry_sz, len);
487487+ logf("SCROBBLER: write entry %d sz [%zu] len [%zu]", i, entry_sz, len);
488488489489 if (len != entry->len || crc != entry->crc) /* the entry is corrupted */
490490 {
···591591 if ( gCache.pos > SCROBBLER_MAX_CACHE - SCROBBLER_CACHE_LEN )
592592 scrobbler_write_cache();
593593594594- logf("SCROBBLER: add_to_cache[%d] write pos[%ld]", gCache.entries, gCache.pos);
594594+ logf("SCROBBLER: add_to_cache[%d] write pos[%zu]", gCache.entries, gCache.pos);
595595 /* use prev_crc to allow whole buffer to be checked for consistency */
596596 static uint32_t prev_crc = 0x0;
597597 if (gCache.pos == 0)
···641641642642 size_t entry_sz = cache_get_entry_size(ret);
643643644644- logf("SCROBBLER: Added (#%d) sz[%ld] len[%d], %s",
644644+ logf("SCROBBLER: Added (#%d) sz[%zu] len[%d], %s",
645645 gCache.entries, entry_sz, ret, entry->buf);
646646647647 gCache.entries++;
+3-3
firmware/drivers/synaptics-mep.c
···348348 syn_wait_clk_change(HI);
349349350350 /* 4. If the guest is still driving DATA low, the transfer is commited
351351- to occur. Otherwise, the transfer is aborted. In either case,
351351+ to occur. Otherwise, the transfer is aborted. In either case,
352352 the host raises ACK. */
353353 if (syn_get_data() == HI)
354354 {
···439439 /* 7d. The host lowers ACK */
440440 syn_set_ack(LO);
441441442442- /* 7e. The host waits for the guest to raise CLK indicating
442442+ /* 7e. The host waits for the guest to raise CLK indicating
443443 that the stop bit is ready */
444444 syn_wait_clk_change(HI);
445445···690690void syn_info(void)
691691{
692692 int i, val;
693693- int data[8];
693693+ char data[8];
694694695695 logf("syn_info...");
696696