[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / platform / posix / MessagePrinter.cpp
blob66217403821ac62fcc81e4d9daa71f9d3c20fe78
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #include "platform/MessagePrinter.h"
11 #include "CompileInfo.h"
13 #include <stdio.h>
15 void CMessagePrinter::DisplayMessage(const std::string& message)
17 fprintf(stdout, "%s\n", message.c_str());
20 void CMessagePrinter::DisplayWarning(const std::string& warning)
22 fprintf(stderr, "%s\n", warning.c_str());
25 void CMessagePrinter::DisplayError(const std::string& error)
27 fprintf(stderr,"%s\n", error.c_str());
30 void CMessagePrinter::DisplayHelpMessage(const std::vector<std::pair<std::string, std::string>>& help)
32 //very crude implementation, pretty it up when possible
33 std::string message;
34 for (const auto& line : help)
36 message.append(line.first + "\t" + line.second + "\n");
39 fprintf(stdout, "%s\n", message.c_str());