2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2014 Google LLC. All rights reserved.
|
2014-10-13 22:06:48 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
//
|
|
|
|
// Flag validation help functions.
|
|
|
|
|
|
|
|
#include "packager/app/validate_flag.h"
|
|
|
|
|
2023-10-09 23:21:41 +00:00
|
|
|
#include <cstdio>
|
2014-10-13 22:06:48 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-10-13 22:06:48 +00:00
|
|
|
|
|
|
|
void PrintError(const std::string& error_message) {
|
|
|
|
fprintf(stderr, "ERROR: %s\n", error_message.c_str());
|
|
|
|
}
|
|
|
|
|
2017-09-20 22:49:00 +00:00
|
|
|
void PrintWarning(const std::string& warning_message) {
|
|
|
|
fprintf(stderr, "WARNING: %s\n", warning_message.c_str());
|
|
|
|
}
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|