From 94d926101a73f0b6d210da53e017d17e45fbdbd4 Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Tue, 14 May 2013 07:38:40 +0200 Subject: Fix printf variable type (2 instances). File pos output changed from 64 bit int to long int. diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 243f41b..1205d96 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -9547,7 +9547,7 @@ tng_function_status tng_frame_set_read_next(tng_trajectory_t tng_data, stat = tng_block_header_read(tng_data, block); if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET) { - printf("Cannot read block header at pos %"PRId64". %s: %d\n", + printf("Cannot read block header at pos %ld. %s: %d\n", file_pos, __FILE__, __LINE__); tng_block_destroy(&block); return(TNG_CRITICAL); @@ -9579,7 +9579,7 @@ tng_function_status tng_frame_set_read_next(tng_trajectory_t tng_data, } if(stat == TNG_CRITICAL) { - printf("Cannot read block header at pos %"PRId64". %s: %d\n", + printf("Cannot read block header at pos %ld. %s: %d\n", file_pos, __FILE__, __LINE__); tng_block_destroy(&block); return(stat); -- cgit v0.10.1