From: Haejeong Kim Date: Fri, 16 Jun 2017 02:40:23 +0000 (+0900) Subject: [RQ170613-00147] fix invalid format argument types for dlog X-Git-Tag: submit/tizen/20170616.053948^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F134310%2F1;p=platform%2Fcore%2Fapi%2Fmetadata-editor.git [RQ170613-00147] fix invalid format argument types for dlog Change-Id: Ibd62b71f5308218acb3e97c6d69d942a46b8f09d --- diff --git a/packaging/capi-media-metadata-editor.spec b/packaging/capi-media-metadata-editor.spec index 3f76b49..e69ec87 100755 --- a/packaging/capi-media-metadata-editor.spec +++ b/packaging/capi-media-metadata-editor.spec @@ -1,6 +1,6 @@ Name: capi-media-metadata-editor Summary: A metadata editor library in Tizen Native API -Version: 0.1.6 +Version: 0.1.7 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/metadata_editor.cpp b/src/metadata_editor.cpp index d24c549..fe9cd79 100755 --- a/src/metadata_editor.cpp +++ b/src/metadata_editor.cpp @@ -847,7 +847,7 @@ extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char * case METADATA_EDITOR_FORMAT_MP3: { if (_metadata->file) { TagLib::MPEG::File* _file = (TagLib::MPEG::File*)_metadata->file; - metadata_editor_info("file free [%lX]", _metadata->file); + metadata_editor_info("file free [%p]", _metadata->file); delete _file; _metadata->file = NULL; _metadata->filetype = METADATA_EDITOR_FORMAT_NOTYPE; @@ -865,10 +865,10 @@ extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char * _metadata->filetype = METADATA_EDITOR_FORMAT_MP3; if (_file->isOpen()) { // Check if the file was opened successfully - metadata_editor_info("The file is successfully opened. Address is %lX\n", _metadata->file); + metadata_editor_info("The file is successfully opened. Address is %p\n", _metadata->file); _metadata->isOpen = true; } else { // The file does not exist or you have no permission to process it - metadata_editor_error("The file was not found. Pointer address is %lX\n", _metadata->file); + metadata_editor_error("The file was not found. Pointer address is %p\n", _metadata->file); _metadata->isOpen = false; return METADATA_EDITOR_ERROR_PERMISSION_DENIED; } @@ -886,7 +886,7 @@ extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char * case METADATA_EDITOR_FORMAT_MP4: { if (_metadata->file) { TagLib::MP4::File* _file = (TagLib::MP4::File*)_metadata->file; - metadata_editor_info("file free [%lX]", _metadata->file); + metadata_editor_info("file free [%p]", _metadata->file); delete _file; _metadata->file = NULL; _metadata->filetype = METADATA_EDITOR_FORMAT_NOTYPE; @@ -904,10 +904,10 @@ extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char * _metadata->filetype = METADATA_EDITOR_FORMAT_MP4; if (_file->isOpen()) { // Check if the file was opened successfully - metadata_editor_info("The file is successfully opened. Address is %lX\n", _metadata->file); + metadata_editor_info("The file is successfully opened. Address is %p\n", _metadata->file); _metadata->isOpen = true; } else { // The file does not exist or you have no permission to process it - metadata_editor_error("The file was not found. Pointer address is %lX\n", _metadata->file); + metadata_editor_error("The file was not found. Pointer address is %p\n", _metadata->file); _metadata->isOpen = false; return METADATA_EDITOR_ERROR_FILE_EXISTS; } @@ -932,10 +932,10 @@ extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char * _metadata->filetype = METADATA_EDITOR_FORMAT_FLAC; if (_file->isOpen()) { // Check if the file was opened successfully - metadata_editor_info("The file is successfully opened. Address is %lX\n", _metadata->file); + metadata_editor_info("The file is successfully opened. Address is %p\n", _metadata->file); _metadata->isOpen = true; } else { // The file does not exist or you have no permission to process it - metadata_editor_error("The file was not found. Pointer address is %lX\n", _metadata->file); + metadata_editor_error("The file was not found. Pointer address is %p\n", _metadata->file); _metadata->isOpen = false; return METADATA_EDITOR_ERROR_FILE_EXISTS; } @@ -959,10 +959,10 @@ extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char * _metadata->filetype = METADATA_EDITOR_FORMAT_OGG_VORBIS; if (_file->isOpen()) { // Check if the file was opened successfully - metadata_editor_info("The file is successfully opened. Address is %lX\n", _metadata->file); + metadata_editor_info("The file is successfully opened. Address is %p\n", _metadata->file); _metadata->isOpen = true; } else { // The file does not exist or you have no permission to process it - metadata_editor_error("The file was not found. Pointer address is %lX\n", _metadata->file); + metadata_editor_error("The file was not found. Pointer address is %p\n", _metadata->file); _metadata->isOpen = false; return METADATA_EDITOR_ERROR_FILE_EXISTS; } @@ -986,10 +986,10 @@ extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char * _metadata->filetype = METADATA_EDITOR_FORMAT_OGG_FLAC; if (_file->isOpen()) { // Check if the file was opened successfully - metadata_editor_info("The file is successfully opened. Address is %lX\n", _metadata->file); + metadata_editor_info("The file is successfully opened. Address is %p\n", _metadata->file); _metadata->isOpen = true; } else { // The file does not exist or you have no permission to process it - metadata_editor_error("The file was not found. Pointer address is %lX\n", _metadata->file); + metadata_editor_error("The file was not found. Pointer address is %p\n", _metadata->file); _metadata->isOpen = false; return METADATA_EDITOR_ERROR_FILE_EXISTS; } @@ -1013,10 +1013,10 @@ extern "C" int metadata_editor_set_path(metadata_editor_h metadata, const char * _metadata->filetype = METADATA_EDITOR_FORMAT_WAV; if (_file->isOpen()) { // Check if the file was opened successfully - metadata_editor_info("The file is successfully opened. Address is %lX\n", _metadata->file); + metadata_editor_info("The file is successfully opened. Address is %p\n", _metadata->file); _metadata->isOpen = true; } else { // The file does not exist or you have no permission to process it - metadata_editor_error("The file was not found. Pointer address is %lX\n", _metadata->file); + metadata_editor_error("The file was not found. Pointer address is %p\n", _metadata->file); _metadata->isOpen = false; return METADATA_EDITOR_ERROR_FILE_EXISTS; } @@ -1935,38 +1935,38 @@ extern "C" int metadata_editor_destroy(metadata_editor_h metadata) { case METADATA_EDITOR_FORMAT_MP3: { // Bring the pointer to actual file type TagLib::MPEG::File* _file = (TagLib::MPEG::File*)_metadata->file; - metadata_editor_info("file free [%lX]", _metadata->file); + metadata_editor_info("file free [%p]", _metadata->file); delete _file; break; } case METADATA_EDITOR_FORMAT_MP4: { TagLib::MP4::File* _file = (TagLib::MP4::File*)_metadata->file; - metadata_editor_info("file free [%lX]", _metadata->file); + metadata_editor_info("file free [%p]", _metadata->file); delete _file; break; } #if 0 case METADATA_EDITOR_FORMAT_FLAC: { TagLib::FLAC::File* _file = (TagLib::FLAC::File*)_metadata->file; - metadata_editor_info("file free [%lX]", _metadata->file); + metadata_editor_info("file free [%p]", _metadata->file); delete _file; break; } case METADATA_EDITOR_FORMAT_OGG_VORBIS: { TagLib::Ogg::Vorbis::File* _file = (TagLib::Ogg::Vorbis::File*)_metadata->file; - metadata_editor_info("file free [%lX]", _metadata->file); + metadata_editor_info("file free [%p]", _metadata->file); delete _file; break; } case METADATA_EDITOR_FORMAT_OGG_FLAC: { TagLib::Ogg::FLAC::File* _file = (TagLib::Ogg::FLAC::File*)_metadata->file; - metadata_editor_info("file free [%lX]", _metadata->file); + metadata_editor_info("file free [%p]", _metadata->file); delete _file; break; } case METADATA_EDITOR_FORMAT_WAV: { TagLib::RIFF::WAV::File* _file = (TagLib::RIFF::WAV::File*)_metadata->file; - metadata_editor_info("file free [%lX]", _metadata->file); + metadata_editor_info("file free [%p]", _metadata->file); delete _file; break; } @@ -1976,7 +1976,7 @@ extern "C" int metadata_editor_destroy(metadata_editor_h metadata) { return METADATA_EDITOR_ERROR_INVALID_PARAMETER; } - metadata_editor_info(" with address %lX will be freed\n", metadata); + metadata_editor_info(" with address %p will be freed\n", metadata); delete _metadata; return METADATA_EDITOR_ERROR_NONE;