From 0ae172613ab52a20a0316ac3f6a21517fce5287b Mon Sep 17 00:00:00 2001 From: "Diaz de Grenu, Jose" Date: Fri, 19 May 2017 15:35:26 +0200 Subject: [PATCH] memwatch: [cosmetic] fix output format The new line should be printed after the result, instead of before. Example: root@ccimx6sbc:~# memwatch -r -w -a 0x2190034 0x02190034: 0x00000000 root@ccimx6sbc:~# After this patch: root@ccimx6sbc:~# memwatch -r -w -a 0x2190034 0x02190034: 0x00000000 Signed-off-by: Diaz de Grenu, Jose --- meta-digi-dey/recipes-digi/memwatch/memwatch/memwatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-digi-dey/recipes-digi/memwatch/memwatch/memwatch.c b/meta-digi-dey/recipes-digi/memwatch/memwatch/memwatch.c index 82c206b81..890b2800b 100644 --- a/meta-digi-dey/recipes-digi/memwatch/memwatch/memwatch.c +++ b/meta-digi-dey/recipes-digi/memwatch/memwatch/memwatch.c @@ -1,7 +1,7 @@ /* * memwatch.c: Program to read/write from/to memory. * - * Copyright (C) 2006 by Digi International Inc. + * Copyright (C) 2006-2017 by Digi International Inc. * All rights reserved. * * This program is free software; you can redistribute it and/or modify it @@ -243,10 +243,10 @@ int main( int argc, char** argv ) } if( ( verbose < VERB_PRNT_ADDR ) && ( j % 16 == 0 ) ) { - printf( "\n0x%08lx: ", address + j ); + printf( "0x%08lx: ", address + j ); } print_hex_formated( rd_val, access ); - + printf("\n"); } else { if( filename != NULL ) { if( ( ret = read( fd_file, &wr_val, access ) ) != access ) {