Make get_events easier to use in a script

Change some output to be valid as shell variable assignments.
This commit is contained in:
Dean Roehrich
2005-05-27 17:23:04 +00:00
parent a3d6ec627d
commit 443293519d
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -47,10 +47,10 @@
* Define some standard formats for the printf statements below.
*/
#define HDR "%s: token=%d sequence=%d\n"
#define VALS "\t%-15s %s\n"
#define VALD "\t%-15s %d\n"
#define VALLLD "\t%-15s %lld\n"
#define HDR "type=%s token=%d sequence=%d\n"
#define VALS "\t%s=%s\n"
#define VALD "\t%s=%d\n"
#define VALLLD "\t%s=%lld\n"
/*
@@ -204,7 +204,7 @@ print_one_data_event(
}
printf(VALS VALLLD VALLLD,
"file handle", handle,
"file_handle", handle,
"offset", msg_de->de_offset,
"length", msg_de->de_length);
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
* Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
@@ -130,7 +130,7 @@ main(
}
exit(1);
}
fprintf(stdout, "rlenp is %d\n", rlenp);
fprintf(stdout, "rlenp=%d\n", rlenp);
if (rlenp == 0)
return(0);