diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-05-28 22:59:05 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-05-28 22:59:05 +0000 |
commit | 91d3353b4756459198a4ea44b377876256062db3 (patch) | |
tree | a0da8d004677bfd7373fa4f2246a612b27cb64bc /spi25.c | |
parent | 6da49446c0cb05da4d3e026a80017078416c5add (diff) | |
download | flashrom-91d3353b4756459198a4ea44b377876256062db3.tar.gz |
tiny fix for a small fix
there was one line break added too much in the previous commit, sorry.
the probing functions need to output at least one '\n' for satisfactory output.
that means even in error cases they have to do that.
OTOH they should not output a sequence of "\n\n" because
it would distort the verbose probing output with empty lines.
Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1322 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'spi25.c')
-rw-r--r-- | spi25.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -267,10 +267,8 @@ int probe_spi_res1(struct flashchip *flash) msg_cdbg("%s: id 0x%x\n", __func__, id2); - if (id2 != flash->model_id) { - msg_cdbg("\n"); + if (id2 != flash->model_id) return 0; - } /* Print the status register to tell the * user about possible write protection. |