Print out media catalog number, if exists
This commit is contained in:
parent
61c728296d
commit
219913d08e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13889
@ -3,7 +3,7 @@
|
||||
* Based on the non-X based CD player by Jean-Marc Zucconi and
|
||||
* Andrey A. Chernov.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: cdcontrol.c,v 1.9 1996/02/03 15:07:32 ache Exp $
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -418,8 +418,12 @@ int pstatus (char *arg)
|
||||
ss.data_format = CD_MEDIA_CATALOG;
|
||||
rc = ioctl (fd, CDIOCREADSUBCHANNEL, (char *) &ss);
|
||||
if (rc >= 0) {
|
||||
printf("Media catalog is %sactive\n",
|
||||
printf("Media catalog is %sactive",
|
||||
ss.data->what.media_catalog.mc_valid ? "": "in");
|
||||
if (ss.data->what.media_catalog.mc_number[0])
|
||||
printf(", number \"%.15s\"",
|
||||
ss.data->what.media_catalog.mc_number);
|
||||
putchar('\n');
|
||||
} else
|
||||
printf("No media catalog info available\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user