fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

psi: Don't print the image comments when using the '-f' option

+5 -11
+2 -4
src/utils/psi/comment.c
··· 5 5 /***************************************************************************** 6 6 * File name: src/utils/psi/comment.c * 7 7 * Created: 2013-06-09 by Hampa Hug <hampa@hampa.ch> * 8 - * Copyright: (C) 2013 Hampa Hug <hampa@hampa.ch> * 8 + * Copyright: (C) 2013-2024 Hampa Hug <hampa@hampa.ch> * 9 9 *****************************************************************************/ 10 10 11 11 /***************************************************************************** ··· 15 15 * * 16 16 * This program is distributed in the hope that it will be useful, but * 17 17 * WITHOUT ANY WARRANTY, without even the implied warranty of * 18 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 19 19 * Public License for more details. * 20 20 *****************************************************************************/ 21 21 ··· 143 143 int psi_show_comment (psi_img_t *img) 144 144 { 145 145 unsigned i; 146 - 147 - fputs ("comments:\n", stdout); 148 146 149 147 for (i = 0; i < img->comment_size; i++) { 150 148 fputc (img->comment[i], stdout);
+3 -7
src/utils/psi/info.c
··· 5 5 /***************************************************************************** 6 6 * File name: src/utils/psi/info.c * 7 7 * Created: 2013-06-09 by Hampa Hug <hampa@hampa.ch> * 8 - * Copyright: (C) 2013-2018 Hampa Hug <hampa@hampa.ch> * 8 + * Copyright: (C) 2013-2024 Hampa Hug <hampa@hampa.ch> * 9 9 *****************************************************************************/ 10 10 11 11 /***************************************************************************** ··· 15 15 * * 16 16 * This program is distributed in the hope that it will be useful, but * 17 17 * WITHOUT ANY WARRANTY, without even the implied warranty of * 18 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 19 19 * Public License for more details. * 20 20 *****************************************************************************/ 21 21 ··· 237 237 238 238 printf ("total sectors: %lu + %lu\n", stotal, atotal); 239 239 printf ("data size: %lu (%.2f KiB)\n", dsize, (double) dsize / 1024); 240 - 241 - if (img->comment_size > 0) { 242 - fputs ("\n", stdout); 243 - psi_show_comment (img); 244 - } 240 + printf ("comment size: %u\n", img->comment_size); 245 241 246 242 return (0); 247 243 }