Skip to content

Commit bac0e74

Browse files
committed
use fprint for errors in BCD1Creator
1 parent 826ad74 commit bac0e74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/BCD1Creator/BCD1Creator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int main(int argc, const char **argv) {
154154
// getline(std::cin, CDDetected);
155155
}
156156
else {
157-
std::cerr << "Invalid choice. Please enter either '1' or '2'." << std::endl;
157+
fprintf(stderr, "Invalid choice. Please enter either '1' or '2'.\n");
158158
return 1;
159159
}
160160

@@ -163,7 +163,7 @@ int main(int argc, const char **argv) {
163163

164164
// Check if the file is opened successfully
165165
if (!outputBCD1.is_open()) {
166-
std::cerr << "Error opening file for writing." << std::endl;
166+
fprintf(stderr, "Error opening file for writing.\n");
167167
return 1;
168168
}
169169

0 commit comments

Comments
 (0)