Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1272)

Unified Diff: ports/nacl-spawn/library_dependencies.cc

Issue 1553053002: Update pnacl toolchain build (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/nacl-spawn/include/nacl_spawn.h ('k') | ports/nacl-spawn/nacl_spawn.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/nacl-spawn/library_dependencies.cc
diff --git a/ports/nacl-spawn/library_dependencies.cc b/ports/nacl-spawn/library_dependencies.cc
index 8e807858ee4ad223873a02de52fda99199669d45..67a5a227d8205c9d81157214da3ba92fabe9da80 100644
--- a/ports/nacl-spawn/library_dependencies.cc
+++ b/ports/nacl-spawn/library_dependencies.cc
@@ -14,10 +14,9 @@
#include <set>
#include "elf_reader.h"
+#include "nacl_spawn.h"
#include "path_util.h"
-#define PROGRAM_NAME "nacl_spawn"
-
static bool s_debug;
static void get_library_paths(std::vector<std::string>* paths) {
@@ -30,7 +29,7 @@ static void get_library_paths(std::vector<std::string>* paths) {
paths->push_back("/usr/lib");
if (s_debug) {
for (size_t i = 0; i < paths->size(); i++)
- fprintf(stderr, "%s: searching: %s\n", PROGRAM_NAME,
+ fprintf(stderr, "%s: searching: %s\n", LOADER_NAME,
paths->at(i).c_str());
}
}
@@ -46,7 +45,7 @@ static bool find_arch_and_library_deps(
}
if (s_debug) {
- fprintf(stderr, "%s: resolving deps for: %s\n", PROGRAM_NAME,
+ fprintf(stderr, "%s: resolving deps for: %s\n", LOADER_NAME,
filename.c_str());
}
@@ -70,12 +69,13 @@ static bool find_arch_and_library_deps(
} else if (machine == EM_ARM) {
*arch = "arm";
} else {
- fprintf(stderr, "%s: unknown arch (%d): %s\n", PROGRAM_NAME, machine,
+ fprintf(stderr, "%s: unknown arch (%d): %s\n", LOADER_NAME, machine,
filename.c_str());
return false;
}
- if (s_debug)
- fprintf(stderr, "%s: arch=%s\n", PROGRAM_NAME, arch->c_str());
+ if (s_debug) {
+ fprintf(stderr, "%s: arch=%s\n", LOADER_NAME, arch->c_str());
+ }
}
if (elf_reader.is_static()) {
@@ -85,7 +85,7 @@ static bool find_arch_and_library_deps(
dependencies->clear();
return true;
} else {
- fprintf(stderr, "%s: unexpected static binary: %s\n", PROGRAM_NAME,
+ fprintf(stderr, "%s: unexpected static binary: %s\n", LOADER_NAME,
filename.c_str());
errno = ENOEXEC;
return false;
@@ -107,7 +107,7 @@ static bool find_arch_and_library_deps(
if (!find_arch_and_library_deps(needed_path, paths, NULL, dependencies))
return false;
} else {
- fprintf(stderr, "%s: library not found: %s\n", PROGRAM_NAME,
+ fprintf(stderr, "%s: library not found: %s\n", LOADER_NAME,
needed_name.c_str());
errno = ENOENT;
return false;
« no previous file with comments | « ports/nacl-spawn/include/nacl_spawn.h ('k') | ports/nacl-spawn/nacl_spawn.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698