Skip to content
Snippets Groups Projects
Commit 2ad3f201 authored by Simon McVittie's avatar Simon McVittie
Browse files

elf-dump, print-version: Respect $CAPSULE_DEBUG

parent 587ff7f6
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include "debug.h"
#include "dump.h"
int main (int argc, char **argv)
......@@ -28,6 +29,8 @@ int main (int argc, char **argv)
void *handle;
const char *libname;
set_debug_flags( secure_getenv("CAPSULE_DEBUG") );
if( argc < 2 )
{
fprintf( stderr, "usage: %s <ELF-DSO>\n", argv[0] );
......
......@@ -21,6 +21,7 @@
#include <string.h>
#include <errno.h>
#include "debug.h"
#include "ld-cache.h"
#include "ld-libs.h"
......@@ -33,6 +34,8 @@ int main (int argc, char **argv)
int error = 0;
int e = 0;
set_debug_flags( secure_getenv("CAPSULE_DEBUG") );
if( argc < 2 )
{
fprintf( stderr, "usage: %s <ELF-DSO> [/path/prefix]\n", argv[0] );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment