diff options
1 files changed, 4 insertions, 3 deletions
diff --git a/inotify-watch.c b/inotify-watch.c
index ccedf2f..1a32786 100644
--- a/inotify-watch.c
+++ b/inotify-watch.c
@@ -3,7 +3,7 @@
* Watch a file or directory for changes using inotify
- * Copyright (c) Tobias Klauser <>
+ * Copyright (c) 2008-2009 Tobias Klauser <>
* All rights reserved.
@@ -21,7 +21,7 @@ struct mask2string {
const char *desc;
-static struct mask2string events[] = {
+static const struct mask2string events[] = {
@@ -53,7 +53,8 @@ static void inotify_print_event(struct inotify_event *inev)
/* stat? */
printf("(%s) wd=%04x, cookie=%04x, len=%04x, name=\"%s\" :",
inev->mask & IN_ISDIR ? "dir" : "file",
- inev->wd, inev->cookie, inev->len, inev->name);
+ inev->wd, inev->cookie, inev->len,
+ inev->len > 0 ? inev->name : "");
for (i = 0; events[i].desc; i++)
if (inev->mask & events[i].mask)
sertions'>+7 2016-05-09libata: Implement ZBC OUT translationHannes Reinecke1-0/+7 2016-05-09libata: implement ZBC IN translationHannes Reinecke1-1/+9 2016-05-09libata-trace: decode subcommandsHannes Reinecke1-0/+17 2016-05-09libata: Check log page directory before accessing pagesHannes Reinecke1-0/+1 2016-05-09libata: Add command definitions for NCQ Encapsulation for READ LOG DMA EXTHannes Reinecke1-0/+5 2016-05-09libata/libsas: Define ATA_CMD_NCQ_NON_DATAHannes Reinecke1-0/+1 2016-04-04libata-core: Allow longer timeout for drive spinup from PUISDamien Le Moal1-1/+2 2016-04-04libata: Implement support for sense data reportingHannes Reinecke1-0/+16 2016-04-04libata: Implement NCQ autosenseHannes Reinecke1-0/+2 2016-02-11libata: fix HDIO_GET_32BIT ioctlArnd Bergmann1-2/+2 2015-08-03Revert "libata: Implement NCQ autosense"Tejun Heo1-2/+0 2015-08-03Revert "libata: Implement support for sense data reporting"Tejun Heo1-16/+0 2015-07-15libata: add ATA_HORKAGE_MAX_SEC_1024 to revert back to previous max_sectors l...David Milburn1-0/+1 2015-05-05libata: READ LOG DMA EXT support can be in either page 119 or 120Martin K. Petersen1-1/+11 2015-03-27libata: Implement support for sense data reportingHannes Reinecke1-0/+18 2015-03-27libata: Implement NCQ autosenseHannes Reinecke1-0/+2 2015-03-27ide,ata: Rename ATA_IDX to ATA_SENSEHannes Reinecke1-1/+1 2015-03-27libata: use READ_LOG_DMA_EXTHannes Reinecke1-0/+7 2014-12-25libata: s/ata_id_removeable()/ata_id_removable()/Nicholas Krause1-1/+1 2013-10-27libata: Add some missing command descriptionsRobert Hancock1-0/+7 2013-08-25libata: Add support for SEND/RECEIVE FPDMA QUEUEDMarc Carino1-0/+21 2013-07-16libata: move 'struct ata_taskfile' and friends from ata.h to libata.hSergei Shtylyov1-102/+0 2013-04-03libata: Use integer return value for atapi_command_packet_setShan Hai1-1/+1 2013-01-14[libata] replace sata_settings with devslp_timingShane Huang1-3/+5 2012-09-13ahci: implement aggressive SATA device sleep supportShane Huang1-0/+9 2012-09-13ata: define enum constants for IDENTIFY DEVICEShane Huang1-8/+13 2012-06-29libata: detect Device Attention supportLin Ming1-0/+1 2011-03-15libata: Use 'bool' return value for ata_id_XXXHannes Reinecke1-81/+75 2011-03-14libata: Include WWN ID in inquiry VPD emulationHannes Reinecke1-0/+7 2010-10-21[libata] support for > 512 byte sectors (e.g. 4K Native)Grant Grundler1-6/+40