summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-09-24 12:47:54 +0000
committerRodeo <[email protected]>2013-09-24 12:47:54 +0000
commitd4a19d9cf6d05f0b6434384ba8d2bd4eed5cc6a3 (patch)
tree205fff54ccb6a9ad17c851b7e05bd4dadf7ea103
parente8fbdebaa6562a66d7b9c95123cf0c6b6d275a16 (diff)
Prettify CPU info in the log.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5804 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/hb.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 570d721df..18859de95 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -626,15 +626,14 @@ void hb_scan( hb_handle_t * h, const char * path, int title_index,
#endif
/* Print CPU info here so that it's in all scan and encode logs */
- hb_log("hb_scan: CPU count: %i", hb_get_cpu_count());
- if (hb_get_cpu_name() != NULL)
+ const char *cpu_name = hb_get_cpu_name();
+ const char *cpu_type = hb_get_cpu_platform_name();
+ hb_log("CPU: %s", cpu_name != NULL ? cpu_name : "");
+ if (cpu_type != NULL)
{
- hb_log("hb_scan: CPU name: %s", hb_get_cpu_name());
- }
- if (hb_get_cpu_platform_name() != NULL)
- {
- hb_log("hb_scan: CPU type: %s", hb_get_cpu_platform_name());
+ hb_log(" - %s", cpu_type);
}
+ hb_log(" - logical processor count: %d", hb_get_cpu_count());
hb_log( "hb_scan: path=%s, title_index=%d", path, title_index );
h->scan_thread = hb_scan_init( h, &h->scan_die, path, title_index,