From 75b9de169f3cd4aa9a35e12f92f347a534398476 Mon Sep 17 00:00:00 2001 From: Dario Casalinuovo Date: Mon, 3 Aug 2015 01:05:12 +0200 Subject: [PATCH] MediaDefs: Fix percentage in when notifying the system * Use TRACE instead of PRINT. --- src/kits/media/MediaDefs.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/kits/media/MediaDefs.cpp b/src/kits/media/MediaDefs.cpp index cd6e95a698..614e89f1e2 100644 --- a/src/kits/media/MediaDefs.cpp +++ b/src/kits/media/MediaDefs.cpp @@ -1261,7 +1261,7 @@ progress_shutdown(int stage, // parameter "message" is no longer used. It is kept for compatibility with // BeOS as this is used as a shutdown_media_server callback. - PRINT(("stage : %i\n", stage)); + TRACE("stage : %i\n", stage); const char* string = "Unknown stage"; switch (stage) { case 10: @@ -1285,7 +1285,7 @@ progress_shutdown(int stage, } if (progress == NULL) - notify_system(stage, string); + notify_system(stage/100.0f, string); else progress(stage, string, cookie); } @@ -1365,14 +1365,14 @@ progress_startup(int stage, // parameter "message" is no longer used. It is kept for compatibility with // BeOS as this is used as a shutdown_media_server callback. - PRINT(("stage : %i\n", stage)); + TRACE("stage : %i\n", stage); const char* string = "Unknown stage"; switch (stage) { case 10: string = B_TRANSLATE("Stopping media server" B_UTF8_ELLIPSIS); break; case 20: - string = B_TRANSLATE("Telling media_addon_server to quit."); + string = B_TRANSLATE("Stopping media_addon_server."); break; case 50: string = B_TRANSLATE("Starting media_services."); @@ -1386,7 +1386,7 @@ progress_startup(int stage, } if (progress == NULL) - notify_system(stage, string); + notify_system(stage/100.0f, string); else progress(stage, string, cookie); }