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 <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
parent
a3bced4a17
commit
0ae172613a
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue