diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2016-03-07 19:34:44 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2016-03-07 19:34:44 +0100 |
commit | e76d30243e48cc99cb5e5a92667a66617e2c6f4c (patch) | |
tree | e7eeae9f8c83255e0a09887203e88f0c4c509ee3 /src/devices/sound | |
parent | a0aafea67ff49ee4dbc2bd66be848d3fd76e5030 (diff) |
Removed I64FMT and SIZETFMT, one usage left in chdman.cpp (nw)
Diffstat (limited to 'src/devices/sound')
-rw-r--r-- | src/devices/sound/disc_sys.inc | 2 | ||||
-rw-r--r-- | src/devices/sound/discrete.cpp | 4 | ||||
-rw-r--r-- | src/devices/sound/esqpump.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/sound/disc_sys.inc b/src/devices/sound/disc_sys.inc index 92b00c30383..a166f71ce49 100644 --- a/src/devices/sound/disc_sys.inc +++ b/src/devices/sound/disc_sys.inc @@ -61,7 +61,7 @@ DISCRETE_STEP( dso_csvlog ) int nodenum; /* Dump any csv logs */ - fprintf(m_csv_file, "%" I64FMT "d", ++m_sample_num); + fprintf(m_csv_file, "%s", string_format("%I64d", ++m_sample_num).c_str()); for (nodenum = 0; nodenum < this->active_inputs(); nodenum++) { fprintf(m_csv_file, ", %f", *this->m_input[nodenum]); diff --git a/src/devices/sound/discrete.cpp b/src/devices/sound/discrete.cpp index 926db3a4a40..dc66910707f 100644 --- a/src/devices/sound/discrete.cpp +++ b/src/devices/sound/discrete.cpp @@ -647,9 +647,9 @@ void discrete_device::display_profiling(void) total = list_run_time(m_node_list); count = m_node_list.count(); /* print statistics */ - printf("Total Samples : %16" I64FMT "d\n", m_total_samples); + printf("%s",string_format("Total Samples : %16I64d\n", m_total_samples).c_str()); tresh = total / count; - printf("Threshold (mean): %16" I64FMT "d\n", tresh / m_total_samples ); + printf("%s",string_format("Threshold (mean): %16I64d\n", tresh / m_total_samples).c_str()); for_each(discrete_base_node **, node, &m_node_list) { discrete_step_interface *step; diff --git a/src/devices/sound/esqpump.cpp b/src/devices/sound/esqpump.cpp index 496cc5c832a..e9ad6cedf85 100644 --- a/src/devices/sound/esqpump.cpp +++ b/src/devices/sound/esqpump.cpp @@ -148,7 +148,7 @@ void esq_5505_5510_pump::sound_stream_update(sound_stream &stream, stream_sample { osd_ticks_t elapsed = now - last_ticks; osd_ticks_t tps = osd_ticks_per_second(); - fprintf(stderr, "Pump: %d samples in %" I64FMT "d ticks for %f Hz\n", last_samples, elapsed, last_samples * (double)tps / (double)elapsed); + fprintf(stderr, "%s",string_format("Pump: %d samples in %I64d ticks for %f Hz\n", last_samples, elapsed, last_samples * (double)tps / (double)elapsed).c_str()); last_ticks = now; while (next_report_ticks <= now) { next_report_ticks += tps; @@ -156,7 +156,7 @@ void esq_5505_5510_pump::sound_stream_update(sound_stream &stream, stream_sample last_samples = 0; #if !PUMP_FAKE_ESP_PROCESSING - fprintf(stderr, " ESP spent %" I64FMT "d ticks on %d samples, %f ticks per sample\n", ticks_spent_processing, samples_processed, (double)ticks_spent_processing / (double)samples_processed); + fprintf(stderr, "%s",string_format(" ESP spent %I64d ticks on %d samples, %f ticks per sample\n", ticks_spent_processing, samples_processed, (double)ticks_spent_processing / (double)samples_processed).c_str()); ticks_spent_processing = 0; samples_processed = 0; #endif |