···55/*****************************************************************************
66 * File name: src/utils/psi/comment.c *
77 * Created: 2013-06-09 by Hampa Hug <hampa@hampa.ch> *
88- * Copyright: (C) 2013 Hampa Hug <hampa@hampa.ch> *
88+ * Copyright: (C) 2013-2024 Hampa Hug <hampa@hampa.ch> *
99 *****************************************************************************/
10101111/*****************************************************************************
···1515 * *
1616 * This program is distributed in the hope that it will be useful, but *
1717 * WITHOUT ANY WARRANTY, without even the implied warranty of *
1818- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
1818+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
1919 * Public License for more details. *
2020 *****************************************************************************/
2121···143143int psi_show_comment (psi_img_t *img)
144144{
145145 unsigned i;
146146-147147- fputs ("comments:\n", stdout);
148146149147 for (i = 0; i < img->comment_size; i++) {
150148 fputc (img->comment[i], stdout);
+3-7
src/utils/psi/info.c
···55/*****************************************************************************
66 * File name: src/utils/psi/info.c *
77 * Created: 2013-06-09 by Hampa Hug <hampa@hampa.ch> *
88- * Copyright: (C) 2013-2018 Hampa Hug <hampa@hampa.ch> *
88+ * Copyright: (C) 2013-2024 Hampa Hug <hampa@hampa.ch> *
99 *****************************************************************************/
10101111/*****************************************************************************
···1515 * *
1616 * This program is distributed in the hope that it will be useful, but *
1717 * WITHOUT ANY WARRANTY, without even the implied warranty of *
1818- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
1818+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
1919 * Public License for more details. *
2020 *****************************************************************************/
2121···237237238238 printf ("total sectors: %lu + %lu\n", stotal, atotal);
239239 printf ("data size: %lu (%.2f KiB)\n", dsize, (double) dsize / 1024);
240240-241241- if (img->comment_size > 0) {
242242- fputs ("\n", stdout);
243243- psi_show_comment (img);
244244- }
240240+ printf ("comment size: %u\n", img->comment_size);
245241246242 return (0);
247243}