Re: [PATCH 08/16] libusbg: Add error which may happen during parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 07/08/2014 04:53 PM, Krzysztof Opasiak wrote:

Signed-off-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx>

[...]
diff --git a/src/usbg.c b/src/usbg.c
index 764cc03..f6841f4 100644
--- a/src/usbg.c
+++ b/src/usbg.c
[...]
@@ -272,6 +284,18 @@ const char *usbg_strerror(usbg_error e)
  	case USBG_ERROR_PATH_TOO_LONG:
  		ret = "Created path was too long to process it.";
  		break;
+	case USBG_ERROR_INVALID_FORMAT:
+		ret = "Given file has incompatible format.";
+		break;
+	case USBG_ERROR_MISSING_TAG:
+		ret = "One of mandatory tags is missing.";
+		break;
+	case USBG_ERROR_INVALID_TYPE:
+		ret = "One of attributs has incompatible type";

   s/attributs/attributes/.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux