mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Make get_events easier to use in a script
Change some output to be valid as shell variable assignments.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user