summaryrefslogtreecommitdiff
path: root/btt/misc.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2009-10-08 08:39:02 -0400
committerAlan D. Brunelle <alan.brunelle@hp.com>2009-10-08 08:39:02 -0400
commita155ab989ffc8b9cf95a631309e9a825d04bcc68 (patch)
tree2fcf17c8a1e3a9c2f2e128dec4e7d14a8e118dca /btt/misc.c
parent677ef89ccb24fb3e38b13b02b9394318afb78f30 (diff)
downloadblktrace-a155ab989ffc8b9cf95a631309e9a825d04bcc68.tar.gz
blktrace-a155ab989ffc8b9cf95a631309e9a825d04bcc68.tar.bz2
btt: better data file naming
More logical naming for .dat files created. Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
Diffstat (limited to 'btt/misc.c')
-rw-r--r--btt/misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/btt/misc.c b/btt/misc.c
index 022955d..2e27c81 100644
--- a/btt/misc.c
+++ b/btt/misc.c
@@ -146,6 +146,11 @@ char *make_dev_hdr(char *pad, size_t len, struct d_info *dip, int add_parens)
return pad;
}
+char *mkhandle(struct d_info *dip, char *str, size_t len)
+{
+ return make_dev_hdr(str, len, dip, 0);
+}
+
FILE *my_fopen(const char *path, const char *mode)
{
FILE *fp;